开发者

Issue in @selector of Objective-C

[mobile_Obj AuthenticateMobileServer:self action:@selector(Handler:) AccountNO:@"123" UserName:@"Sun" Password:@"123***"];

In the above method call , can we have two threads running simultaneously??

One thread running: AuthenticateMobileServer method

Second thread runnig: Handler method

Please let me knw is it possible or not, if so how to create thread for each of th开发者_如何转开发em?

Thank You.


Maybe you could create a method that to be called by @selector which creates the threads instead.

Take a look at the NSOperation docs, as well as this tutorial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜