【发布时间】:2016-02-09 12:02:43
【问题描述】:
使用下面的代码在 UIButton 的外部阴影。但是我怎样才能在按钮内部获得阴影
button.imageView.layer.cornerRadius = 7.0f;
button.layer.shadowRadius = 3.0f;
button.layer.shadowColor = [UIColor blackColor].CGColor;
button.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
button.layer.shadowOpacity = 0.5f;
button.layer.masksToBounds = NO;
【问题讨论】:
-
看到这个链接可能对你有帮助stackoverflow.com/questions/4431292/…
标签: ios objective-c