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];