Skip to content

Instantly share code, notes, and snippets.

@Lewuathe
Last active March 5, 2017 13:34
Show Gist options
  • Select an option

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

Select an option

Save Lewuathe/5162049 to your computer and use it in GitHub Desktop.
Difference between NSURL and NSString ref: http://qiita.com/Lewuathe/items/54d21a4f2f470db4431f
NSURL *url = [NSURL URLWithString:[NSHomeDirectory() stringByAppendingString:@"/Documents/test.txt"]];
[movieFileOutput startRecordingToOutputFileURL:url recordingDelegate:self];
/var/mobile/Applications/hogehoge/Documents/test.txt
NSURL *url = [NSURL fileURLWithPath:[NSHomeDirectory() stringByAppendingString:@"/Documents/test.txt"]];
file://localhost/var/mobile/Applications/hogehoge/Documents/test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment