小编Man*_*ola的帖子

如何在IOS6中旋转单个视图控制器

如何ViewController在iPad中旋转单曲ios6.我已经使用过代表了

appdelegate.m

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
    return UIInterfaceOrientationMaskPortrait;
}
Run Code Online (Sandbox Code Playgroud)

它使所有viewcontroller肖像和我想要viewcontroller只在横向模式之间的单一.

在graphViewController.m中

- (BOOL)shouldAutorotate
{
    return NO;
}

- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskLandscape;
}
Run Code Online (Sandbox Code Playgroud)

但我无法得到正确的结果,请尽快回复.谢谢.

iphone ios6

5
推荐指数
1
解决办法
608
查看次数

标签 统计

ios6 ×1

iphone ×1