2010-12-20 44 views

回答

0

使用transitionToView,您將替換層次結構頂部的self.view,以便movieView不會繼承當前邊界;即它不知道它處於肖像模式。嘗試只是動畫的addSubView:

[UIView transitionWithView:self.view 
         duration:2 
         options:UIViewAnimationOptionTransitionCurlUp 
        animations:^{ 
         [self.view addSubview:aViewController.view]; 
        } 
        completion:NULL]; 
1

沒有控制器,你可以只使用現有的視圖:

[UIView transitionWithView:fromView 
        duration:2 
        options:UIViewAnimationOptionTransitionCurlUp 
       animations:^{ 
        [fromView addSubview:toView]; 
       } 
       completion:NULL]; 
相關問題