- 自定义分割线
1、去除系统原生separator:
self.tableView.separatorColor = [UIColor clearColor];
2、在UITableView的协议方法里面自定义分割线:
- (UITableViewCell )tableView:(UITableView )tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
// 画一个像素的线
UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 44-(1.0f/[UIScreen mainScreen].scale)/2, cell.width, 1.0f/[UIScreen mainScreen].scale)]