2010-08-09 116 views
0

我正在尋找一種方式來旋轉視圖後,視圖已經加載時,它已作爲模態視圖呈現。有沒有辦法在完成加載後旋轉視圖?

我envoke我的看法致電:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { 
    return (orientation == UIInterfaceOrientationLandscapeRight); 
} 
+0

好吧,現在開心嗎? – Frank 2010-08-09 15:09:09

回答

1

可以旋轉使用變換一個觀點:

[self presentModalViewController:cntrol animated:YES]; 

而且在模態視圖控制器我正在通過旋轉。

CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2); 
self.view.transform = transform; 
相關問題