ios - uncaught exception when using NSOperation:performSelector: -
I was trying to add a selector to my NSOption but it gives me:
- [NSOperation Sample]: Unexpected selector sent for example 0x17e35830 2014-11-06 20: 03: 26.542 **** [1473: 60b] *** Due to the exception of an exception, the 'NSII videagment' Exception ', reason:' - [NSOperation Sample]: Non-recognized selector example sent for example 0x17e35830 *** First of all throw Scroll Stack: (0x303d8f53 0x3aa416af 0x303dc8e7 0x303db1d3 0x3032a598 0x820d5 0xa457d 0x590b9 0x3af24d7b 0x3af24d67 0x3af2b7c1 0x303a3821 0x303a20f5 0x3030cce7 0x3030cacb 0x34fda283 0x32baea41 0x78339 0x3af49ab7) libc ++ abi.dylib: Do not come ended types with the exception of NSException
< P> My code: NSOperation * op = [[NSOperation alloc] init]; [Option Selectors: @sillector (sample)]; [Myocuyon operation: op]; - (zero) sample {nslog (@ "sample"); }
The problem is what the error says, NSOperation
There is no method called sample
you can call it [self sample];
or [Self Performance Selector: @sillector (sample)];
Comments
Post a Comment