Skip to content

Instantly share code, notes, and snippets.

@Lewuathe
Created March 21, 2013 13:57
Show Gist options
  • Select an option

  • Save Lewuathe/5213184 to your computer and use it in GitHub Desktop.

Select an option

Save Lewuathe/5213184 to your computer and use it in GitHub Desktop.
Conversion between NSURL and filePath ref: http://qiita.com/items/16addae18a9b4d7682b7
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:@"/dir/file.txt"];
// or
NSURL *fileURL = [NSURL fileURLWithPath:@"/dir/file.txt"];
NSString *filePath= [fileURL absoluteString];
 // or
NSString *filePath= [fileURL path];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment