*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '- [__NSDate string]: unrecognized selector sent to instance 0x1342af90'
*** First throw call stack:
(0x278b012 0x24a1e7e 0x28164bd 0x277abbc 0x277a94e 0x154248d 0x1542674 0x1d6e1e 0x1eed0d5 0x1eed034 0x2d2c5b7 0x2d16dce)
libc + + abi.dylib: terminate called throwing an exception
(Lldb)
Reported this error is usually caused by what happens from time to time because of the tears ran this program,
Reply:
unrecognized selector sent to instance 0x1342af90 '
Reply:
Error message has been given suggests: unrecognized selector sent to instance
The reason given is that you are trying to send a string message NSDate type, but not defined string NSDate, and therefore can not find the string message and cause the program to crash.
Workaround:
Debug when breakpoints to find the specific location of the error code, look at the specific type of that object, determine whether an object can respond to a message you can use isResondToSelector to judge.
No comments:
Post a Comment