TableView

来源:互联网 发布:mac snow ball 编辑:程序博客网 时间:2024/06/05 02:53

//一个cell刷新

  NSIndexPath *indexPath=[NSIndexPathindexPathForRow:index inSection:0];[_tableViewreloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationNone];


//画分割线

-(void)drawRect:(CGRect)rect{

    UIBezierPath *path = [UIBezierPathbezierPathWithRect:CGRectMake(0, rect.size.height, rect.size.width,1)];

    [[UIColorcolorWithHexString:@"#3c4453"withAlpha:1]setStroke];

    [path stroke];

}

0 0
原创粉丝点击