I am loading my second screen with delay of 2 second. But I want to show my first screen as well for 2 second and after 2 second my second screen should be load. I have written code
[NSThread sleepForTimeInterval:2.0];
for delay. But my MainWindow is not appearing. I have written code inside of the function
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
....
}
Where to write the code to show first screen for 2 second.
Thanks in advance.
You can use NSTimer for swap views like the following:
You can setup the Timer on: