iPhone: unrecognized selector error

前端 未结 1 412
渐次进展
渐次进展 2021-01-29 05:23

I\'m threeaing some tasks like this :

RootViewController

- (void)viewDidLoad {
[NSThread detachNewThreadSelector:@selector(findSomething) toTarget:self         


        
相关标签:
1条回答
  • 2021-01-29 06:07

    The threading is irrelevant. Some of the code you're not showing us is making it so you are sending the foundSomething: selector to an object that doesn't handle that message. Route the message to an object that does handle it, and your problem will go away.

    See also "Unrecognized selector sent to instance".

    0 讨论(0)
提交回复
热议问题