How to add Timer to loop.

Posted by mukeshpawar on Stack Overflow See other posts from Stack Overflow or by mukeshpawar
Published on 2010-03-30T12:59:23Z Indexed on 2010/03/30 13:03 UTC
Read the original article Hit count: 417

Filed under:
|
|

how to add timer to loop. i am making a urlConnection so i want that the loop execute for a time and if there is no connection it should exit.

Does it work.....

[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1f]];

Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about iphone