How to convert a file path into an NSURL (and back)
To convert a file path into an NSURL: NSURL *localURL = [NSURL fileURLWithPath:localPath]; To create a local path from an NSURL: NSString *localPath = [localURL filePathURL]; NSURLs can also be created directly from an NSString: NSURL *yourURL = [[NSURL alloc]initWithString:@”http://wpguru.co.uk”]; // or NSURL *yourURL = [NSURL URLWithString:@”http://wpguru.co.uk”]; If you’re ever tried to pass a local […]