UITableView in table view's headerView

走远了吗. 提交于 2019-12-12 05:12:00

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/11070875/uitableview-in-table-views-headerview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!