给UIView及其子类设置阴影偏移效果,代码如下:
loginBoardView.layer.shadowOffset = CGSizeMake(-2, 1);
loginBoardView.layer.shadowColor = [UIColor lightGrayColor].CGColor;
loginBoardView.layer.shadowOpacity = 1;
loginBoardView.layer.shadowRadius = 4;
给UIView及其子类设置阴影偏移效果,代码如下:
loginBoardView.layer.shadowOffset = CGSizeMake(-2, 1);
loginBoardView.layer.shadowColor = [UIColor lightGrayColor].CGColor;
loginBoardView.layer.shadowOpacity = 1;
loginBoardView.layer.shadowRadius = 4;
本文标题:ios 阴影偏移效果
本文链接:https://www.haomeiwen.com/subject/tpooyxtx.html
网友评论