2012-03-28 37 views
0

我有一個UIImagePickerController(源類型攝像頭),用於拍照。我把它放在我的.h(添加了@property)和.m(@synthesize)。下面是我用它來展示它:UIImagePickerController上的攝像頭按鈕是隨機分佈的

if (thePicker == nil) { 
thePicker = [[UIImagePickerController alloc] init]; 
thePicker.delegate = self; 
thePicker.sourceType = UIImagePickerControllerSourceTypeCamera; 
thePicker.allowsEditing = NO; 
} 

[self presentModalViewController:thePicker animated:YES]; 

我有一個奇怪的問題。每次關閉/打開幾次後,相機按鈕或使用的按鈕都不起作用(但重拍按鈕和取消按鈕正常工作)。我沒有得到任何內存警告,我有一個dealloc和didReceiveMemoryWarnings void語句,但他們不會被調用。

還有其他問題?

+0

你提交了雷達嗎? – CodaFi 2012-03-28 04:53:47

回答

1

我已經看到一些應用覆蓋它們的覆蓋,但你不能刪除它。 AVCaptureSession確實聽起來更適合您的目的。我在這裏看到了一個例子:

http://www.musicalgeometry.com/?p=1273

試試這個,它可以幫助ü我想謝謝!

相關問題