- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
NSString *path = [NSHomeDirectory()
stringByAppendingPathComponent:[NSString
stringWithFormat:@"Documents/myMovie.m4v"]];
UISaveVideoAtPathToSavedPhotosAlbum(path,
self, @selector(video:didFinishSavingWithError:contextInfo:),
nil);
return YES;
}
- (void)video:(NSString *)videoPath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo {
if (error != nil) {
NSLog(@"Error: %@", error);
}
}