2011-02-14 65 views
0

我想在我的應用程序啓動時調用willAnimateRotationToInterfaceOrientation方法,我該如何強制此方法腳趾執行? 當我現在轉動裝置:(強制willAnimateRotationToInterfaceOrientation方法

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{  
    return YES; 
} 

一個細節......當設備處於橫向模式下,它被稱爲這只是調用,但是當我開始在垂直模式設備永遠不會調用此方法:(

回答

0

爲什麼不直接在Info.plist文件中將方向設置爲UISupportedInterfaceOrientations?