Ios6 UIImagePickerController相机快门未打开
我有一个UIImagePickerController,在源类型的相机。 有时候相机的快门开不开,但我可以拍照 有时候效果不错 我正在使用UIImagePickerController的子类Ios6 UIImagePickerController相机快门未打开,ios6,camera,uiimagepickercontroller,xcode4.6,Ios6,Camera,Uiimagepickercontroller,Xcode4.6,我有一个UIImagePickerController,在源类型的相机。 有时候相机的快门开不开,但我可以拍照 有时候效果不错 我正在使用UIImagePickerController的子类 - (id)init{ self = [super init]; if (self) { if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]
- (id)init{
self = [super init];
if (self) {
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){
[self setSourceType:UIImagePickerControllerSourceTypeCamera];
self.showsCameraControls =NO;
[self setWantsFullScreenLayout:YES];
self.cameraOverlayView = bottomToolBar;
self.cameraOverlayView = topToolBar;
}
else{
[self setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
}
}
}
底部工具栏和顶部工具栏是工具栏
任何人都可以帮我。我也有同样的问题。这上面有相似的线。不幸的是,它们都不适用于我,每次打开图像选择器时,我都不得不求助于重新实例化它 您应该阅读这两个线程,看看它们的解决方案是否适合您
现在已编辑源代码。它添加到init函数中。它是UIImagePickerController的子类。问题是内存问题。问题是内存问题。