遇见就记  每天进步一些

cell分割线 顶头 去尾

TableView.layoutMargins = UIEdgeInsetsZero

  TableView.separatorInset = UIEdgeInsetsZero;

   TableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero

点击不变色

cell.selectionStyle = UITableViewCellSelectionStyleNone;

 隐藏分割线

TableView.separatorStyle = UITableViewCellEditingStyleNone;

设置颜色

[tableView setSeparatorColor:];

 

 

 

后去cell 里的某一个值

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:3];

TableViewCell*cell = [TableView cellForRowAtIndexPath:indexPath];

[cell viewWithTag:];//cell里 for循环的值 

 

 

点击跳转到cell的指定位置

 

 NSInteger position = 组头数;

            NSIndexSet *indesSet = [NSIndexSet indexSetWithIndex:position];

            [tableView reloadSections:indesSet withRowAnimation:UITableViewRowAnimationFade];//在tableview 点击方法里 

            [_anonymousTableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:5] animated:YES scrollPosition:UITableViewScrollPositionTop];

 

删除某一组

 // NSIndexSet *indexSet = [[NSIndexSet alloc]initWithIndex:btn.tag-1000];

 LZDynViewModel * model = [LZDynViewModel mj_objectWithKeyValues:modelArr[btn.tag-1000]];

    

    deleStr = model.aid;

    

    [modelArr removeObjectAtIndex:btn.tag - 1000];

    [_MyTableView beginUpdates];

    //[_MyTableView deleteSections:indexSet withRowAnimation:UITableViewRowAnimationFade];

 [_MyTableView endUpdates];

 

删除某一行

   NSIndexPath *indexPath = [NSIndexPath indexPathForRow:btn.tag-1000 inSection:0];

    [_MyTableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];

    

    [_MyTableView endUpdates];