0
在我的应用程序中有三个选项卡在第二个选项卡一个viewcontroller,我只想在肖像模式,但即时通讯无法查看该格式...所以任何一个有正确的解决方案,然后回答在这里...在tabbar应用程序,我们只想查看一些视图风景和一些肖像在iphone
在我的应用程序中有三个选项卡在第二个选项卡一个viewcontroller,我只想在肖像模式,但即时通讯无法查看该格式...所以任何一个有正确的解决方案,然后回答在这里...在tabbar应用程序,我们只想查看一些视图风景和一些肖像在iphone
添加这个方法你的第二个观点CONTROLER:
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotate
{
return NO;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}