// 添加 TableView 第一个 Cell 的顶部线
UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 0.5)];
line.backgroundColor = [UIColor colorWithRed:50/255.0 green:50/255.0 blue:50/255.0 alpha:1.0];
[self.view addSubview:line];
```
![](https://img.haomeiwen.com/i1916415/b437c377c9e9bdff.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/400)
网友评论