简体   繁体   English

UISplitViewController调整iPad大小

[英]UISplitViewController resize iPad

How can i resize the entire SplitViewController? 如何调整整个SplitViewController的大小? Smaller then the full screen representation. 比全屏表示更小。 I want to do a representation like registration in The Daily newspaper App. 我想在“每日报”应用程序中进行注册表达。

I believe that you have to implement your own version of the UISplitViewController. 我相信你必须实现自己的UISplitViewController版本。 One popular alternative is MGSplitViewController . 一个流行的替代方案是MGSplitViewController

UISplitViewController has to be the RootViewController (there's a nice explanation of why on this question ), and I don't think you can resize it. UISplitViewController必须是RootViewController(对这个问题有一个很好的解释),我认为你不能调整它的大小。 You would need to create your own class that implements the functionality you want to have a modal-type UISplitViewController, which is what I think The Daily has done. 您需要创建自己的类来实现您希望拥有模态类型UISplitViewController的功能,这就是我认为The Daily所做的。

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

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