私のアプリはカメラを使用して写真を撮ります。
カメラを 2 回目に開くと (最初に開いて閉じた後)、
アプリがクラッシュし、次のメッセージが表示されます。
*** -[PLCameraPreviewView isKindOfClass:]: message sent to deallocated instance 0x4193380
PLCameraPreviewView とは何ですか?
何が起こっているか知っていますか。次のコードを使用してカメラを開きます。
self.imagePicker = [[[UIImagePickerController alloc] init] autorelease];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.allowsEditing = NO;
[self presentModalViewController:imagePicker animated:YES];