UIView at top of UITableView in UITableViewController without scroll

六眼飞鱼酱① 提交于 2019-12-11 09:14:00

问题


I added uiView above uiTableViewController,

inside of my table I have some data with scroll but I don't want to have scroll for this uiview above my table

does anyone knows what should I do?

Thanks in advance!


回答1:


Don't use a UITableViewController. Use a UIViewController with a UITableView and your additional UIView at the top. A TableView Controller expects its view to be the only one. Using a View Controller with a TableView gives you much more flexibility (A UISearchBar that is always visible is one of them too)



来源:https://stackoverflow.com/questions/11825073/uiview-at-top-of-uitableview-in-uitableviewcontroller-without-scroll

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