开发者

Setting delay in pushing view controller iphone

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:.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜