敲的一樣的代碼,為什么會出現這樣的錯誤?
2017-05-21 19:47:59.735 ImagePickerDemo[2331:204917] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target?
2017-05-21 19:47:59.735 ImagePickerDemo[2331:204917] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target?
2017-05-21
舉報
2017-05-24
百度一下
2017-05-22
這個出錯提示的很明確了,你present了一個空控制器,也就是你要彈出的頁面為nil.還沒有實例化吧,你好好檢查檢查代碼。