Top "Nsurl" questions

NSURL is a class from Foundation.

Xcode 6 error 'URLWithString' is unavailable?

Please help a newbie here. I'm sure this is stupid simple. I'm following along and learning Xode nicely, but I'm …

ios swift nsstring nsurl
How to get NSData from file by using PHAsset

I have file at path file:///var/mobile/Media/DCIM/100APPLE/IMG_0197.mov But when I try this code- NSError *…

ios file nsurl phasset
How do I convert url.query to a dictionary in Swift?

I have a URL coming in to the AppDelegate method: func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: …

ios swift nsdictionary nsurl
How to Play Videos PHAsset in iOS?

I want to play video from PHAsset, collected from iOS Photos. PHAsset video nsurl (https://stackoverflow.com/a/35099857/1084174) is valid …

ios swift video nsurl phasset
URLComponents.url is nil

I'm trying to use URLComponents to compose a URL as that appears to be what it's for. However, when I …

ios swift nsurl nsurlcomponents
NSURL file extension addition etc

I have received a URL from the savePanel sheet and I would like to do following: Check to see if …

objective-c nsstring nsurl
Encode '+' using URLComponents in Swift

This is how I add query params to a base URL: let baseURL: URL = ... let queryParams: [AnyHashable: Any] = ... var components = …

ios swift swift3 nsurl
How to load NSURL which contains hash fragment "#" with UIWebView?

Given a local URL address like index.html Now I need to use UIWebView to load it in iPad. I …

nsurl
NSURL found nil while unwraping an Optional value

Anyone knows why am I getting fatal error: unexpectedly found nil while unwrapping an Optional value When i use let …

swift nsurl nsurlrequest
How to Convert NSURL to CFURLRef

Apple gives sample code for Creating PDF document. But It uses CFURLRef NSPanel savepanel gives NSURL. I can't convert NSURL …

operating-system pdf-generation nsurl nssavepanel nspanel