由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:' * - [CALayer setShadowOffset:]:无法识别的选择器发送到实例0x2f86d0'
cell.shadowView.layer.masksToBounds = NO;
cell.shadowView.layer.cornerRadius = 10.0;
cell.shadowView.layer.shadowOffset = CGSizeMake(0, 2);
cell.shadowView.layer.shadowRadius = 6;
cell.shadowView.layer.shadowOpacity = 0.5;
答案 0 :(得分:3)
阅读CALayer类参考所有内容都写在苹果的文档中。