alexrezit
2012-11-07 22:52:56 +08:00
明白了.
添加行:
[self.tableView insertRowsAtIndexPaths:<#(NSArray *)#> withRowAnimation:<#(UITableViewRowAnimation)#>];
添加输入框:
[cell.contentView addSubview:_inputTextView];
滚动到最后一行:
NSInteger numberOfSections = self.tableView.numberOfSections;
NSInteger numberOfRows = [self.tableView numberOfRowsInSection:numberOfSections - 1];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:numberOfRows - 1 inSection:numberOfSections - 1] atScrollPosition:UITableViewScrollPositionBottom animated:YES];
虽然我很想损你一句: 读一下文档会死啊?