Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 仅将图形旋转到横向模式_Ios_Objective C_Graph_Telerik - Fatal编程技术网

Ios 仅将图形旋转到横向模式

Ios 仅将图形旋转到横向模式,ios,objective-c,graph,telerik,Ios,Objective C,Graph,Telerik,在视图控制器中,我有tableView和graphView。当我将设备的方向更改为横向模式时,横向模式中只应显示graphView。请注意: - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationLandscapeLeft; } - (BOOL)shouldAutorotate { return NO; } 您应该使“图形视图”成为一个单独的视图控制器,然后使用类似的内容:“父视图控制器

在视图控制器中,我有
tableView
graphView
。当我将设备的方向更改为横向模式时,横向模式中只应显示
graphView
。请注意:

- (NSUInteger)supportedInterfaceOrientations
{
  return UIInterfaceOrientationLandscapeLeft;
}
- (BOOL)shouldAutorotate {

  return NO;
}
您应该使“图形视图”成为一个单独的视图控制器,然后使用类似的内容:“父视图控制器”-[作为子视图]->“图形视图控制器”和“父视图控制器”-[作为子视图]->“表视图控制器”。完成此操作后,应禁用父控制器和表视图控制器的旋转,同时启用图形视图控制器的旋转。如果此设置看起来令人困惑,或者没有调用旋转处理回调,请参考以下答案: