UITableView does not respond to scrolling the first time it's loaded

巧了我就是萌 提交于 2019-11-29 07:50:31

I had same problem. Bounce Scroll was enabled in IB, but still no love. I had to set it in the code ( in viewDidLoad ) like so...

self.myTableView.bounces = YES;

Hope this helps ;-)

What does your xib file look like? Do you have any views other than the UITableView?

Early on when I was learning iPhone programming, I somehow ended up with two UITableViews in my xib file - the table displayed properly, but was showing subtle problems.

I solved this problem by making sure there are always at least 10 rows in the table -- creating dummy rows when there are less than 10 real rows. This solved the glitch.

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