[英]full screen camera in ios
我正在使用以下代碼,以便用戶可以拍照:
- (IBAction)takePhoto:(UIButton *)sender {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
}
有沒有辦法使相機占據孔眼?
您將看到的是UIImagePickerController的默認實現,其中包括相機控件。
嘗試通過將showsCameraControls
設置為NO
來關閉它們。
如果要添加自己的控件,請使用cameraOverlayView
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.