Re: Can't convert to swift 3 and support <iOS 10?
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