• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't convert to swift 3 and support <iOS 10?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't convert to swift 3 and support <iOS 10?


  • Subject: Re: Can't convert to swift 3 and support <iOS 10?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 09 Sep 2016 09:14:23 -0700

> On Sep 9, 2016, at 2:19 AM, Rick Mann <email@hidden> wrote:
>
>    'getResourceValue(_:forKey:)' is unavailable: Use
>    struct URLResourceValues and URL.setResourceValues(_:)
>    instead
>
> Problem is, that only exists on iOS 10.

According to NSURL.h, the setResourceValues method has been available since iOS 4:

	- (BOOL)setResourceValues:(NSDictionary<NSURLResourceKey, id> *)keyedValues error:(NSError **)error NS_AVAILABLE(10_6, 4_0);

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Can't convert to swift 3 and support <iOS 10? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: How to avoid swift.retain/release
  • Next by Date: Launching iOS 10 supported build using Xcode 7
  • Previous by thread: Can't convert to swift 3 and support <iOS 10?
  • Next by thread: Re: Can't convert to swift 3 and support <iOS 10?
  • Index(es):
    • Date
    • Thread