定位unrecognized selector sent to instance异常



 Unrecognized selector is an exception, and you can set a breakpoint on exceptions.

In Xcode 4, go to the breakpoint navigator, click the +, and choose "Add Exception Breakpoint". Under Exception, choose Objective-C. Under Break, choose On Throw. It should look like this when you're done: 

 

猜你喜欢

转载自zani.iteye.com/blog/1886023