我的iPhone应用程序允许用户录制视频。 如何在屏幕截图中自定义我的相机视图。(我还需要自定义timer-countDown)
答案 0 :(得分:0)
您需要将所有自定义元素放在UIView
中,并将该视图分配给cameraOverlayView
属性。
- (void)takePicture {
if (([UIImagePickerController isSourceTypeAvailable:
UIImagePickerControllerSourceTypeCamera] == NO)) return;
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
// add a custom view overlay
[imagePickerController setCameraOverlayView:customView];
[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];
}