Created
March 21, 2013 13:57
-
-
Save Lewuathe/5213184 to your computer and use it in GitHub Desktop.
Conversion between NSURL and filePath ref: http://qiita.com/items/16addae18a9b4d7682b7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:@"/dir/file.txt"]; | |
| // or | |
| NSURL *fileURL = [NSURL fileURLWithPath:@"/dir/file.txt"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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