1

取消按鈕顯示爲禁用,並且當圖片選擇器控制器首先出現不工作禁用,但我移動到下一個視圖中選擇一個專輯,取消按鈕變爲啓用並開始正常工作。取消按鈕顯示在IOS使用presentViewController時的UIImagePickerController 5

我應該怎麼做,以保持取消按鈕啓用,所有的工作時間?

imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; 
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) 
{ 
    NSArray *sourceTypes = [UIImagePickerController availableMediaTypesForSourceType:imgPicker.sourceType]; 
    imgPicker.mediaTypes = sourceTypes; 
    [self presentViewController:imgPicker animated:YES completion:Nil]; 
} 

回答

0
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)pick 

有你在UIImagePickerControllerDelegate實現這個功能呢?

More reference

相關問題