Frame
- (void)setFrame:(CGRect)frame{
frame.origin.y + = 10;//整体下移
frame.size.height - = 10;//tabeview cell 间隔为10 (自己剪短10)
[super setFrame:frame];
}
刷新
//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
网友评论