DetailsIPhone full screen displayCameraViewIs the content to be introduced in this article, mainly introducesIphone full screen display.
This article describes how to call a system camera in iPhone application development. However, sometimes I need to customize the content of the camera.ViewAdd other controls, the following is the cameraViewThe maximum number of instances.
:
Code implementation:
- -(IBAction)onClickbutton:(id)sender
- {
- UIImagePickerController *controller = [[UIImagePickerController alloc] init];
- [controller setSourceType:UIImagePickerControllerSourceTypeCamera];
- [controller setShowsCameraControls:NO];
- CGAffineTransform cameraTransform = CGAffineTransformMakeScale(1.25,1.25);
- controller.cameraViewTransform = cameraTransform;
- [self presentModalViewController:controller animated:YES];
- [controller release];
- }
Summary: DetailsIPhone full screen displayCameraViewI hope this article will help you!