iPad:创建自定义 UISplitViewController
我已经使用 UISplitViewController 一段时间了,但它的可定制性不足以满足我的需求,所以我想我可以创建自己的自定义 UISplitViewController ,以及需要做什么。是否只是创建两个彼此相邻的视图控制器,主视图保留对详细视图的引用,并正确处理旋转(以显示和隐藏弹出窗口),还是还有更多的事情?
I've been playing around with UISplitViewController for a while, but it's not customizable enough for my needs, so I was thinking I could create my own custom UISplitViewController, and what it would take to do so. Is it just a matter of creating 2 view controllers next to each other, with the master view keeping a reference to the detail view, and handling rotations properly (to show and hide the popover), or is there more to it than that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会看一下去年制作的 Matt Legend Gemmell 的自定义 splitview 控制器,以获得一些指导:
https://github。 com/mattgemmell/MGSplitViewController
I would take a look at Matt Legend Gemmell's custom splitview controller that was made last year for some pointers:
https://github.com/mattgemmell/MGSplitViewController