3

我正在使用MGSplitViewController. 现在,我不想将视图拆分为全屏。

是否可以更改框架MGSplitViewController

谢谢

4

1 回答 1

2

在您的MGSplitViewController.m文件中,您可以找到名为的方法

- (void)layoutSubviewsForInterfaceOrientation:(UIInterfaceOrientation)theOrientation withAnimation:(BOOL)animate

在这种方法中,您可以修改框架

例如:-

`// 布局主视图、分隔视图和详细视图。

CGRect newFrame = CGRectMake(0, 70, width, height);
UIViewController *controller;`
于 2012-08-27T12:52:06.693 回答