In my application, I want to open the camera in video mode. Therefore, I write the following codes
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [window addSubview:viewController.view]; [window makeKeyAndVisible]; UIImagePickerController *ipc; ipc = [[UIImagePickerController alloc] init]; ipc.sourceType = UIImagePickerControllerSourceTypeCamera; ipc.mediaTypes = [NSArray arrayWithObject:(NSString *) kUTTypeMovie]; [viewController presentModalViewController:ipc animated:YES]; return YES; }
This code is good for iPhone 3.1.3, but it doesnβt work on iOS4. Can I use UIImagePickerController as a video on iOS4?
iphone xcode ios4
SUKIYAKI
source share