I am creating a navigation based application. I have different views which are pushed and pope开发者_StackOverflow中文版d from navigation controller (pop is mainly using back button). Here is the code that I am using for pushing view controller.
MyViewController *dvController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
I would like the to set delay in animation when new view controller is pushed. Default slide animation in iphone is ok for me. But with some delay.
Is there any way to do this?
Can use NsTimer to set the required delay.and call the method using timer.
Wrap the above code in a method and call it with -performSelector:afterDelay:
.
精彩评论