简体   繁体   English

在UISplitView中调整UITableView的大小

[英]Resizing a UITableView within a UISplitView

I have programmatically instantiated a UISplitView with a LeftViewController and a RightViewController (Master/Detail). 我以编程方式实例化了一个带有LeftViewController和RightViewController(主/明细)的UISplitView。

I've been trying to modify the UITableView's (LeftViewController) width without success. 我一直在尝试修改UITableView的(LeftViewController)宽度,但没有成功。 Is this even possible within a UISplitView? 在UISplitView中甚至可能吗?

Thanks 谢谢

I can assume you are trying to change the width of the masterViewController of the SplitViewController. 我可以假设您正在尝试更改SplitViewController的masterViewController的宽度。

The width of the SplitViewController controllers is fixed and you can not change it. SplitViewController控制器的宽度是固定的,您不能更改。 You can small or expand the table view itself but the view controller will not be affected from that. 您可以缩小或扩展表视图本身,但视图控制器不会因此受到影响。

Look here, that might help you create your own SplitViewController - MGSplitViewController 看这里,这可能会帮助您创建自己的SplitViewController- MGSplitViewController

Or here - custom uisplitviewcontroller 或者在这里- 自定义uisplitviewcontroller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM