开发者

Only half of last tableview cell is visible when scrolled to the bottom

开发者 https://www.devze.com 2023-03-29 23:40 出处:网络
I have a tableview and when i scroll to the bottom of it and release my finger, only half of the cell is visible. If i keep draggaing towards the bottom the whole cell sh开发者_StackOverflow社区ow and

I have a tableview and when i scroll to the bottom of it and release my finger, only half of the cell is visible. If i keep draggaing towards the bottom the whole cell sh开发者_StackOverflow社区ow and then hides when i release my finger.

Only half of last tableview cell is visible when scrolled to the bottom

Any idea?


The frame of your tableView seems to be set to a wrong frame. Reset the frame like this:

CGRect tableViewFrame = [tableView frame];
tableViewFrame.size.height -= heightOfButtonBar;
tableViewFrame.origin.y += heightOfButtonBar;
[tableView setFrame: tableViewFrame]; 
0

精彩评论

暂无评论...
验证码 换一张
取 消