When this action gets executed it displays secondviewcontroller directly what i want is that viewcontroller displays first and after 40 or 50 secs it displays secondviewcontroller next and so on.
- (void)displayviewsAction:(id)sender
{
PageOneViewController *viewController = [[PageOneViewController alloc] init];
viewController.view.frame = CGRectMake(0, 0, 320, 480);
SecondViewController *secondController = [[SecondViewController alloc] init];
secondController.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:viewController.view];
[self.view addSubview:secondController.view];
[self.view bringSubviewToFront:viewController.view];
[self.view addSubview:toolbar];
[self.view sendSubviewToBack:viewController.view];
[self.view addSubview:toolbar];
}
Anyone have any ideas how i can do that.
you can add the secondViewController in a separate method and call that method using performSelector:withObject:afterDelay