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語句,但他們不會被調用。
還有其他問題?
你提交了雷達嗎? – CodaFi 2012-03-28 04:53:47