当tableview需要显示的cell内容大于一屏的时候,最底部的cell不能正常滑到底部才能显现,解决的办法是,修改添加tableView的方式。
方法一:
[self.view addSubview:self.tableView];
改成:
self.view = self.tableView;
方法二:
修改tableView的frame中的height
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, self.headerView.frame.origin.y + self.headerView.frame.size.height, kScreenWidth, kScreenHeight) style:UITableViewStylePlain];