我有一个看起来像这样的自定义单元格细胞-ContainingView(称为cellframe)--标签--标签包含View的原因是我可以在单元格周围设置阴影。下面是我的代码#import"QuickNoteMasterViewCell.h"#import@interfaceQuickNoteMasterViewCell()@property(nonatomic,strong)CAShapeLayer*shapeLayer;@end@implementationQuickNoteMasterViewCell-(id)initWithStyle:(UITableViewCellStyle)