表视图 headerView 中的 UITableView [英] UITableView in table view's headerView

查看:29
本文介绍了表视图 headerView 中的 UITableView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于 UITableView 部分始终保持在视图中,但我有一个我不确定的想法:>

有没有人尝试将 UITableView 嵌套在另一个 UITableView 中,无论是将第二个作为 tableHeaderView 还是作为节标题第一个?

解决方案

UITableView 派生自 UIScrollView.在滚动视图中包含滚动视图通常不是一个好主意(例外:当滚动方向彼此垂直时).

否则,您最终会得到一个不适合大多数用户的用户界面.

Relating to UITableView sections to always stay within view but I got an idea I'm not sure of:

Has anyone ever tried to nest a UITableView in another UITableView, whether by putting the second one as the tableHeaderView or as a section header of the first one?

解决方案

UITableView is derived from UIScrollView. It is generally not a good idea to have a scroll view inside a scroll view (exception: when the scrolling directions are perpendicular to each other).

Otherwise you would end up with a user interface that is not appropriate for most users.

这篇关于表视图 headerView 中的 UITableView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆