自定义cell,加上阴影就可以了,上代码
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)reuseIdentifier{
if(self= [superinitWithStyle:stylereuseIdentifier:reuseIdentifier]) {
//项目View
HCFileView*FileView = [[HCFileViewalloc]init];
FileView.backgroundColor= [UIColorwhiteColor];
//给bgView边框设置阴影
FileView.layer.shadowOffset=CGSizeMake(1,1);
FileView.layer.shadowOpacity=0.3;
FileView.layer.shadowColor= [UIColorblackColor].CGColor;
[selfaddSubview:FileView];
self.FileView= FileView;
}
returnself;
}