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

<Bug>UIButton在setImage之后,添加的数字badge会默认显示在左上角 #7

Open
ChokShen opened this issue Nov 24, 2017 · 3 comments

Comments

@ChokShen
Copy link

No description provided.

@jkpang
Copy link
Owner

jkpang commented Apr 10, 2018

贴出你创建UIButton的代码, 在左上角是可能是因为在UIButton的frame为0时, 就设置了Badge @ChokShen

@ghost
Copy link

ghost commented May 17, 2018

请问,给UIButton.imageView添加badge,结果出现四分之一的园
11

@wuzer
Copy link

wuzer commented Aug 19, 2020

请问,给UIButton.imageView添加badge,结果出现四分之一的园
11

button.imageView.layer.masksToBounds = false;

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

3 participants