ios tableView 設(shè)置 tableview 的分割線
實(shí)現(xiàn)效果圖:
[tableview setSeparatorColor:[UIColor blueColor]]; //設(shè)置分割線為藍(lán)色
隱藏UITableViewCell的分隔線
[self.myTableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; UITableViewCellSeparatorStyle有如下幾種 typedef NS_ENUM(NSInteger, UITableViewCellSeparatorStyle) { UITableViewCellSeparatorStyleNone, UITableViewCellSeparatorStyleSingleLine, UITableViewCellSeparatorStyleSingleLineEtched // This separator style is only supported for grouped style table views currently};
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選