0
在我的應用程序中有三個選項卡在第二個選項卡一個viewcontroller,我只想在肖像模式,但即時通訊無法查看該格式...所以任何一個有正確的解決方案,然後回答在這裏...在tabbar應用程序,我們只想查看一些視圖風景和一些肖像在iphone
在我的應用程序中有三個選項卡在第二個選項卡一個viewcontroller,我只想在肖像模式,但即時通訊無法查看該格式...所以任何一個有正確的解決方案,然後回答在這裏...在tabbar應用程序,我們只想查看一些視圖風景和一些肖像在iphone
添加這個方法你的第二個觀點CONTROLER:
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotate
{
return NO;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}