How to update the Master dimensions of a UIPopoverController in a Master / Detail template

I have a project that is built using the Master / Detail template for iPad. When it was developed using iOS 5.0, it was easy to update popoverview by simply setting up a view controller inside popover by doing (ex):

self.contentSizeForViewInPopover = GCRect(500.0, 500.0) 

This will cause the popoverview to display by default and make it much wider, so that I could place more content on the screen on fewer lines.

However, as soon as I tested iOS 6, I noticed that the actual popoverview is completely different and more like a slider view, because as soon as you click the button at the top, popoverview now jumps from the left side to the right, and the size is no longer updated. What do I need to do to make this "slider" wider?

enter image description here

+4
source share
2 answers

You simply cannot resize UISplitViewController views. Consider using some third-party components or make your own to implement the desired behavior.

0
source

You cannot crack the default UISplitViewController. I was pretty far in this, but you will get unexpected statements.

If you get a wider value, you should use MGSplitViewController: https://github.com/mattgemmell/MGSplitViewController

It offers the ability to set the width of the wizard as follows:

- (void)setSplitPosition:(float)posn animated:(BOOL)animate;

0
source

Source: https://habr.com/ru/post/1445431/


All Articles