如何并排布局两个 ios UITableView?
我有一位客户想要一个视图布局,该布局既包含典型的全角分组样式行,又包含同一视图上的另一个部分,其中包含两个并排的表视图。
那么,像这样:
______________
______________
______ ______
______ ______
______ ______
______________
______________
有什么聪明的方法可以实现这一点吗?我意识到这有点违背 iOS 范式,但我想在告诉设计师“不”之前探索一些选择。
I have a customer who wants a view layout that contains both the typical full-width grouped-style rows, but then also another section on the same view that contains two side by side table views.
So, like this:
______________
______________
______ ______
______ ______
______ ______
______________
______________
Any clever ways to accomplish this? I realize that this kinda goes against iOS paradigms, but I want to explore options before telling the designer "no".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以有一个视图控制器(我们称之为 A),它将负责 2 个表格上方和下方的文本。然后,您可以向 A 添加 2 个视图控制器。每个视图控制器负责每个表。虽然我认为界面会有点混乱,但我认为它的做法是正确的。将视图控制器添加到 A:
希望有帮助。
You could have a view controller (lets call it A), that would be responsible for text above and below the 2 tables. Then, you could add 2 view controllers to A. Each one would be responsible for each table. Although I think the interface will be a little confuse, I think its correct way of doing. For adding your view controllers to A:
Hope it helps.