0
我遇到了在iphone上從頭開始使用相機的問題。其他人的代碼在我的3GS上運行良好,但我的代碼沒有。奇怪在我的UIImagePickerController與相機
當我實現了一個UIViewController
控制器,我添加以下代碼在viewdidload
:
UIImagePickerController *picker = [UIImagePickerController alloc] init];
picker.source = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self; //Previously added all the delegate properly
[self presentModalViewController:picker animated:YES];
沒有出來。 我在調試器中檢查過,它顯示選擇器已分配,但這裏是我和成功之間的主要區別。
picker._imagepickerflag.visible = 0; //others show 1;
picker.UINavigationController._containerView: 0x0 ; // others have value.
任何人都可以幫我解決這個問題嗎?
謝謝。