开发者

setShadowOffset crash on iOS 3.x

开发者 https://www.devze.com 2023-03-15 05:52 出处:网络
Terminating app due to uncaught exception \'NS开发者_运维知识库InvalidArgumentException\', reason: \'* -[CALayer setShadowOffset:]: unrecognized selector sent to instance 0x2f86d0\'

Terminating app due to uncaught exception 'NS开发者_运维知识库InvalidArgumentException', reason: '* -[CALayer setShadowOffset:]: unrecognized selector sent to instance 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;


Read CALayer class reference everything is written in the apple's documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消