Warning: UIKit should not be called from a secondary thread

前端 未结 5 1514
悲哀的现实
悲哀的现实 2020-12-10 00:44

In my iPhone app I need to connect to a web server as this can take some time I\'m using threads like this:

[NSThread detachNewThreadSelector:@selector(sendS         


        
5条回答
  •  萌比男神i
    2020-12-10 01:20

    Why not:

    [NSThread detachNewThreadSelector: @selector(sendStuff:) toTarget: self withObject: self.textField.text];
    

    ?

提交回复
热议问题