我像这样设置我的 tableView 的 tableFooterView:
UIView *footerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 44)];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setFrame:CGRectMake(10, 10, footerView.bounds.size.width - 20, 44)];
[button setBackgroundImage:[UIImage imageNamed:@"addItemButton.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(add) forControlEvents:UIControlEventTouchUpInside];
[footerView addSubview:button];
self.tableView.tableFooterView = footerView;
但是,当我滚动到表格视图的最底部时,我的按钮被切断了。
如何确保显示整个按钮?