嘿,我是iPhone
的新手,我一直在嘗試使用ARC
來製作一種類似的應用程序。我使用UIImagePickerController
從相機捕捉圖像。有時,當我點擊相機按鈕..然後它工作正常,但有時它顯示如下截圖預覽屏幕,然後用戶必須點擊UIImagePicker
預覽取消按鈕,然後再次點擊相機按鈕捕捉圖像成功..可以有人告訴我爲什麼我得到這個問題的原因?iPhone中的UIImagePickerController問題?
這裏是我的代碼:
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
imagePickerController.allowsEditing = YES;
imagePickerController.sourceType = sourceType;
[self presentViewController:imagePickerController animated:YES completion:nil];
謝謝您的幫助。
您沒有設置源類型。 –