佚名通过本文主要向大家介绍了tableview控件,qt tableview 滚动条,tableview,qt tableview,tableview详解等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:TableView控件 tableview滚动到底部的问题
描述:
解决方案1:
描述:
我希望滚动后的效果如图1,实际效果却是图2.代码在下面,求助。
-(void)scrollToBottom
{
unsigned long count = self.frameModelArray.count;
if (count>0) {
NSIndexPath *lastIndex = [NSIndexPath indexPathForRow:count-1 inSection:0];
[self.tableView scrollToRowAtIndexPath:lastIndex atScrollPosition:UITableViewScrollPositionBottom animated:YES];
[self.view layoutIfNeeded];
}
}
解决方案1:
self.tableView.contentInsets = UIEdgeInsetsMake(0, 0, 44, 0);