xcode UITableView 不能一直滚动到底部
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6408645/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UITableView Cannot be Scrolled all the way to the bottom
提问by user4951
I am just curious. I make a few UITableView. In all cases, if I scroll all the way to the bottom it bounce up again.
我只是好奇。我做了几个 UITableView。在所有情况下,如果我一直滚动到底部,它会再次弹起。
So lower portion of the table cannot be accessed. How should I fix this?
因此无法访问表的下部。我应该如何解决这个问题?
I mean exactly that I asked. One of the solution is that the table size is not right.
我的意思是我问的。解决方案之一是表大小不正确。
And that is exactly the problem. I have to simulate the size for the toolbar below.
而这正是问题所在。我必须模拟下面工具栏的大小。
Thank you for those who answer. No thanks for those who close this good question.
谢谢回答的人。不,感谢关闭这个好问题的人。
回答by EmptyStack
It seems your tableView's frame heightis exceeding the visible area. Decreasethe tableView's frame height to be inside the visible area. You will see everything.
您的 tableView 的框架高度似乎超出了可见区域。将 tableView 的框架高度降低到可见区域内。你会看到一切。
回答by illuminatus
You can try
你可以试试
tableView.contentSize = CGSizeMake(widthYouWant, heightYouWant);