What is the process for accessing a video file on an iPhone so I can transfer it via Bluetooth?
NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"movie" ofType:@"m4v"];
How can I a开发者_Go百科ccess the file system on the iPhone? By using NSFileManager
I can only access the files in the application's sandbox.
Your application can't access any other content besides the controllers that provide files(like UIImagePickerViewController) and stuff on the internet.
You can access video content in the users Photos through AssetsLibrary
and AVFoundation
(using AVAssetReader
), but you can only decode frames this way, you cannot transfer the video file as-is.
精彩评论