我得到這個錯誤,當我寫下面提到的代碼。基本上我想保存UIImagePickerController捕獲到我的應用程序目錄的視頻。我沒有得到我犯了錯誤的地方。請幫我..wait_fences:未能收到回覆:10004003在UIImagePickerController
- (void) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info { NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType]; [self dismissModalViewControllerAnimated:NO]; // Handle a movie capture if (CFStringCompare ((__bridge_retained CFStringRef) mediaType, kUTTypeMovie, 0) == kCFCompareEqualTo) { NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0]; NSString *movieName = [NSString stringWithFormat:@"%@.mov",[self getNameForVideo]]; NSString *moviePath = [documentsDir stringByAppendingPathComponent:movieName]; NSURL * movieURL = [info valueForKey:UIImagePickerControllerMediaURL]; NSData * movieData = [NSData dataWithContentsOfURL:movieURL]; if([movieData writeToFile:moviePath atomically:NO]) { [self saveVideoInfoInDatabase]; } else { NSLog(@"Video could not be saved to the document directry"); } } }
什麼是錯誤? – AppleDelegate
錯誤是「wait_fences:無法接收回復:10004003」 –
它已解決? – YaBoiSandeep