给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;