UIView 在 UITableViewController 中的 UITableView 顶部没有滚动 [英] UIView at top of UITableView in UITableViewController without scroll
问题描述
我在uiTableViewController上面添加了uiView,
I added uiView above uiTableViewController,
在我的表格内,我有一些带有滚动的数据,但我不想在表格上方滚动此 uiview
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?
提前致谢!
推荐答案
不要使用 UITableViewController
.使用带有 UITableView
的 UIViewController
和顶部的附加 UIView
.TableView 控制器期望它的视图是唯一的.将 View Controller 与 TableView 一起使用可为您提供更大的灵活性(始终可见的 UISearchBar
也是其中之一)
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)
这篇关于UIView 在 UITableViewController 中的 UITableView 顶部没有滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!