iOS開(kāi)發(fā)中UITableView和UITableViewCell的幾種樣式
http://blog.csdn.net/crazyzhang1990/article/details/12503163
系統(tǒng)自己的UITableViewCell樣式有四種
UITableViewCellStyleValue1

image.png
UITableViewCellStyleValue2

image.png
UITableViewCellStyleSubtitle

image.png
UITableViewCellStyleDefault

image.png
一句話(huà)增加系統(tǒng)自帶的右側(cè)小箭頭
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
TableView適配iOS 11
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = false;
}
TableView 不顯示多余的footview
self.tableView.tableFooterView = [UIView new];