Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MGSplitView Controller frame change

I am using MGSplitViewController. Now, I don't want split view to full screen.

Is it possible to change the frame of MGSplitViewController ?

Thanks

like image 991
Hitarth Avatar asked Aug 29 '26 09:08

Hitarth


1 Answers

In your MGSplitViewController.m file you can find method called

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

in this method you can modify the frame

For example:-

`// Layout the master, divider and detail views.

CGRect newFrame = CGRectMake(0, 70, width, height);
UIViewController *controller;`
like image 147
Maulik Avatar answered Aug 30 '26 23:08

Maulik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!