如何调整 UITableView 控制器中表视图的大小?
我有一个 UINavigationController ,其中包含 UITableViewController 的视图。如何从导航控制器内调整表格视图的大小?
I have a UINavigationController
that contains the view of a UITableViewController
. How can I resize the table view from within the navigation controller?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不太确定这是否是您正在寻找的东西,但听起来足够接近。这会将 tableView 的大小调整为您指定的任何像素大小。它也会在过渡中执行此操作(因此它不会只是跳转到大小)。如果需要,您可以删除过渡。
Not exactly sure if this is what you are looking for but its sounds close enough. This will resize your tableView to whatever pixel size you specify. It will do it in a transition too (so it doesnt just jump to size). You can remove the transition if you wanted.
也许这个方法将帮助您调整表行的大小:
Maybe this method will help you to resize the table rows: