我使用UIImagePickerController在我的ios应用程序中拍照。但我不希望在发生捏合手势时相机视图缩放。我能做什么? THX!
答案 0 :(得分:0)
尝试添加捕捉触摸的叠加层:
picker = [[UIImagePickerController alloc] init];
[picker setSourceType:UIImagePickerControllerSourceTypeCamera];
[picker setCameraOverlayView:overlayView];
[picker setShowsCameraControls:NO];
[picker setDelegate:self];
[self.view addSubview:picker.view];
答案 1 :(得分:0)
您可以简单地禁用选择器视图上的互动。
picker.view.userInteractionEnabled = NO;