[iPhone] change rootViewController with animation


[UIView transitionWithView:self.window duration:0.5
    options: UIViewAnimationOptionTransitionFlipFromLeft
    animations:^{
        self.window.rootViewController = newViewController;
    }
    completion:nil];



빨간 부분은 도대체 먼 문법이냐??.


http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/UIView/UIView.html#//apple_ref/doc/uid/TP40006816-CH3-SW112
[UIView transitionWithView:containerView
        duration:0.2
        options:UIViewAnimationOptionTransitionFlipFromLeft
        animations:^{ [fromView removeFromSuperview]; [containerView addSubview:toView]; }
        completion:NULL];

Posted by incree

2012/06/21 17:28 2012/06/21 17:28
, ,
Response
0 Trackbacks , 0 Comments
RSS :
http://www.incree.com/tc/incree/rss/response/133

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다


Notices

Archives

Authors

  1. incree

Recent Trackbacks

Calendar

«   2017/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28        

Site Stats

Total hits:
389667
Today:
2
Yesterday:
144