1
如何設置我的單視圖應該執行的方向? 這一個下面的作品給我所有的方向,但在具體的看法,我不想旋轉。shouldAutorotateToInterfaceOrientation單視圖
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
謝謝!
是啊,但我這樣做的時候,它適用於每一個的TabBar視圖。 – 2012-07-25 11:42:49
請更徹底地解釋您的問題。 – Selkie 2012-07-25 12:30:22
我有一個TabBar有4個視圖,好嗎?我將我的應用程序設置爲以各種方向旋轉。但在其中一種觀點中,我需要鎖定旋轉。當我將shouldAutorotateToInterfaceOrientation方法返回到YES時,它會在所有視圖中旋轉。 – 2012-07-25 14:25:53