如何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)
但我无法得到正确的结果,请尽快回复.谢谢.