[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 : 이 글에는 트랙백을 보낼 수 없습니다