Hi all,
I have a little problem. I need to pause my program for 2 seconds.
But when i use : [NSThread sleepForTimeInterval:2]; the actions beforedon't work :
the actions(1) work after the pause i don't know why ??. the behaviour of the application is :
how can i have the first behaviour?
thanks to any answer...
I have a little problem. I need to pause my program for 2 seconds.
But when i use : [NSThread sleepForTimeInterval:2]; the actions beforedon't work :
Code:
// some actions (1)
[NSThread sleepForTimeInterval:2];
//some action (2)
the actions(1) work after the pause i don't know why ??. the behaviour of the application is :
Code:
[NSThread sleepForTimeInterval:2];
//some actions(1)
//some actions (2)
how can i have the first behaviour?
thanks to any answer...