回覆回應
Do transition use CATransition rather than UIView animation
use CATransition will give us smoother animation than original UIView animation, and we can set more "Hidden" transition type.
CATransition* trans = [CATransition animation];
[trans setType:kCATransitionPush];
[trans setDuration:0.5];
[trans setSubtype:kCATransitionFromBottom];
// code to change the view//
CALayer *layer = rootViewController.view.layer;
[layer addAnimation:trans forKey:@"Transition"];
由 water 在 週二, 2008-09-09 09:38 發表
Tags:

最新回應
33 周 1 天前
38 周 3 天前
41 周 5 天前
42 周 5 天前
51 周 3 天前
51 周 3 天前
51 周 4 天前
51 周 6 天前
1 年 1 周前
1 年 1 周前