敲的一樣的代碼,為什么會出現(xiàn)這樣的錯(cuò)誤?
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
舉報(bào)
2017-05-24
百度一下
2017-05-22
這個(gè)出錯(cuò)提示的很明確了,你present了一個(gè)空控制器,也就是你要彈出的頁面為nil.還沒有實(shí)例化吧,你好好檢查檢查代碼。