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.
精彩评论