Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIButton阴影不显示,代码如下 #9

Open
zengjinzong opened this issue Apr 2, 2019 · 0 comments
Open

UIButton阴影不显示,代码如下 #9

zengjinzong opened this issue Apr 2, 2019 · 0 comments

Comments

@zengjinzong
Copy link

//代码示例
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(10,500, 300, 50);
button.backgroundColor = UIColor.redColor;

button.cornerRadius = 3;
button.shadowRadius = 3;
button.shadowColor = UIColor.blackColor;
button.shadowOffset = CGSizeMake(3, 3);
button.shadowOpacity = 0.3;
[self.view addSubview:button];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant