naomi naomi - 2 years ago 117
iOS Question

How to change UISplitVIew's TableView Width

I have an ipad app in portrait mode but due to shorter width of DetailView it is hiding content in it according to width wise. SO i want to shorter the width of table view. Any Idea?

Answer Source

Simple and easy feature of IOS 8.

In your .h file:

@property(nonatomic, assign) CGFloat maximumPrimaryColumnWidth NS_AVAILABLE_IOS(8_0);

In your .m file:

 self.maximumPrimaryColumnWidth = 100;
 self.splitViewController.maximumPrimaryColumnWidth = self.maximumPrimaryColumnWidth;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download