开发者

Issue in @selector of Objective-C

开发者 https://www.devze.com 2023-01-11 18:46 出处:网络
[mobile_Obj AuthenticateMobileServer:self action:@selector(Handler:) AccountNO:@\"123\" UserName:@\"Sun\" Password:@\"123***\"];

[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

精彩评论

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