2011-05-11 55 views
0

我想在我的標籤欄的應用程序,打開相機.. 我有打開攝像頭,但我不能拍攝照片,因爲我沒有發現在屏幕上的攝像頭符號,所以請告訴我怎樣我可以在相機視圖中顯示相機按鈕(用於捕捉)嗎?我也在我的iPhone上測試過它。相機打開,但我找不到任何按鈕,選取圖像..我怎麼能搞到如果? 謝謝。 代碼使用,而不是相機問題

picker = [[UIImagePickerController alloc] init]; 

picker.delegate = self; 

picker.sourceType = UIImagePickerControllerSourceTypeCamera; 

[Delegate presentModalViewController:picker animated:YES]; 

回答

0

 [self presentModalViewController:picker animated:YES]; 

[Delegate presentModalViewController:picker animated:YES];