TableView 的 separatorStyle 设置是否有线 风格
一、设置Cell底部线 的位置
自定义Cell内
self.separatorInset = UIEdgeInsetsZero;
if ([self respondsToSelector:@selector(setLayoutMargins:)])
{
[self setLayoutMargins:UIEdgeInsetsZero];
}
if ([self respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)])
{
[self setPreservesSuperviewLayoutMargins:NO];
}
二、Cell右视图
系统自带的几种类型
self.accessoryType =
自定义Cell右边视图
self.accessoryView = 自定义一个UIView
三、设置Cell 被选中时的样式
self.selectionStyle = UITableViewCellSelectionStyleNone;
四、设置Cell的高度
+(CGFloat)cellHeight
{
ios8以上编译
/*
([[[UIDevice currentDevice] systemVersion] compare:@“8” options:NSNumericSearch] != NSOrderedAscending)
*/if (ios8AndUper)
{
return UITableViewAutomaticDimension;
}
}