views:

46

answers:

1

Hello,

[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 them?

Thank You.

A: 

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.

esqew