UNRECOGNIZED SELECTOR SENT TO INSTANCE 問(wèn)題快速定位的方法
開(kāi)發(fā)中常見(jiàn)的一類崩潰錯(cuò)誤是遇到:unrecognized selector sent to instance 0xaxxxx…而backtrace又無(wú)法明確說(shuō)明錯(cuò)誤在哪行代碼巫财,如何快速定位BUG呢狭姨?
- 在xcode中導(dǎo)航欄Debug菜單中選擇 Breakpoints -> Create Symbolic Breakpoint
-[NSObject(NSObject) doesNotRecognizeSelector:]