我使用下面的代碼行來獲取PhotoLibrary及其完美的工作,並且視圖可以通過取消按鈕出現在右上側來解除:取消按鈕出現在iOS 5上禁用在iOS 4上使用presentViewController
[self presentModalViewController:imgPicker animated:YES];
但是,在iOS 5下面的代碼行是獲取PhotoLibrary,但「取消按鈕」是禁用的,即該視圖不能被取消按鈕取消。
[self presentViewController:imgPicker animated:YES completion:nil];
imgPicker是UIImagePickerController它與iOS 4,任何其他建議工作正常嗎? – Kazmi 2012-01-30 10:04:29
是的。將'UIImagePickerController'替換爲實例化的'imgPicker'。 – Mundi 2012-01-30 13:25:37