- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// 32bit颜色 : ARGB
// Alpha : 8
// Red : 8
// Green : 8
// Blue : 8
// 24bit颜色 : RGB
// Red : 8
// Green : 8
// Blue : 8
// #ff ff ff 白色
// #00 00 00 黑色
// #ff 00 00 红色
// # ff ff 00
// #ff ff ff ff
// 每一个颜色通道占据8个二进制位
// 每一个颜色通道的取值范围是[0, 255]
// R 78
// G 100
// B 255
// # ff ff 00 ff
比较重要的四个属性
//设置分割线的风格
self.tableView.separatorColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:0 alpha:255/255.0];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
// 表格的头部控件(直接显示表格的最顶部)// 头部用于添加广告或者Btn按钮,尾部用于添加 “加载更多”
self.tableView.tableHeaderView = [UIButton buttonWithType:UIButtonTypeContactAdd];
self.tableView.tableFooterView = [[UISwitch alloc] init];
}