更改tabblwView的cell的线的颜色 以及 可以单独加载某个行的数据

来源:互联网 发布:人人商城数据备份 编辑:程序博客网 时间:2024/06/06 01:44
1.更改tabblwView的cell的线的颜色 
self.tableView.separatorStyle= UITableViewCellSeparatorStyleSingleLine;
self.tableView.separatorColor= UIColor colorWithRed:52.0f/255.0fgreen:53.0f/255.0fblue:61.0f/255.0falpha:0.1];

2.可以单独加载某个行的数据

NSIndexPath*path = [NSIndexPathindexPathForRow:rowinSection:0];
[self.tableViewreloadRowsAtIndexPaths:@[path]withRowAnimation:UITableViewRowAnimationLeft];
withRowAnimation:后面接枚举
0 0
原创粉丝点击