在xcode 4中,我無法將屏幕方向鎖定爲僅肖像,即使我只選擇了肖像。如何以編程方式執行此操作?無法將屏幕方向鎖定爲僅限於xcode 4中的肖像?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
此代碼的工作在一個新的空白項目
請發佈您到目前爲止的代碼。 – PengOne
我想通了 – Omar