update tableView contenSize
来源:互联网 发布:淘宝正品化妆品店 编辑:程序博客网 时间:2024/05/19 19:39
NSIndexPath *messageIndexPath = [NSIndexPath indexPathForRow:afterRowCount-1 inSection:0];
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:@[messageIndexPath] withRowAnimation:UITableViewRowAnimationNone];
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:@[messageIndexPath] withRowAnimation:UITableViewRowAnimationNone];
[self.tableView endUpdates];
NSLog(@"---------%f---------", self.tableView.contentSize.height);
self.tableView.contentSize = [self.tableView sizeThatFits:CGSizeMake(CGRectGetWidth(self.tableView.bounds), CGFLOAT_MAX)]; //至关重要
NSLog(@"--------%f----------", self.tableView.contentSize.height);
1 0
- update tableView contenSize
- TableView
- TableView
- tableview
- tableview
- tableview
- TableView
- TABLEVIEW
- tableView
- tableView
- TableView
- tableview
- tableview
- tableView
- tableView
- tableView
- tableView
- TableView
- UIImageView 的contentMode属性应用
- LeetCode OJ - Validate Binary Search Tree
- 风河成立Titanium Cloud生态系统项目
- 牛人主页
- 对sip中outbound的理解
- update tableView contenSize
- CascadeClassifier
- LeetCode OJ - Recover Binary Search Tree
- IOS NSRegularExpression 解析正则表达式
- Mina的拦截器FilterChain
- Android访问网络的4种方法
- 获取汉字首字母
- js判断ip地址,子网掩码,网关的逻辑性检查
- 物联网应用技术