How to use Sleep in the application in iphone

Posted by Pugal Devan on Stack Overflow See other posts from Stack Overflow or by Pugal Devan
Published on 2010-06-10T11:17:55Z Indexed on 2010/06/10 11:23 UTC
Read the original article Hit count: 233

Filed under:
|

Hi,

I have used to loading a default image in my appication. So i have set to,

Sleep(3); in my delegate.m method.

But sometimes it will take more than 6 to 7 minutes. So i want to display the image 3 seconds only and then it goes to my appilcation based on my requirements.

Which one is best way to do that? Sleep(3) or [NSThread sleepForTimeInterval:3.0] or something else;

And i must display the image 3 seconds only. Please explain me. (Note: And I declared setter and getter methods only in my deleagte class.)

Please explain me.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about sleep