查看了各種資料, 然而并沒有明白為什么, 只找到了解決方案:
以上可能是一種情況, 但我遇到的情況是: 為了減少ViewController的代碼量, 我將ImagePickerController的delegate設(shè)置為另外一個單獨(dú)的類:PhotoCenter(所有有關(guān)相冊和相機(jī)的處理都在這里), 在代碼運(yùn)行過程中PhotoCenter的實(shí)例被釋放, 所以imagePickerController的delegate不被回調(diào).
解決方法, 將PhotoCenter的實(shí)例設(shè)為ViewController的屬性或成員變量就可以了.