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

使用masonry自动布局的控件 badge只能显示在左上角 #38

Open
ZhongYanga opened this issue May 24, 2017 · 3 comments
Open

Comments

@ZhongYanga
Copy link

No description provided.

@CallMeDK
Copy link

自动布局 cell 需要调用 [self layoutIfNeeded]
frame才有值,角标才能找到对应的位置。

@bigNiuSanMao
Copy link

我是在set方法中 调用layoutIfNeeded ,在layoutsubviews方法中调用view showBadge的方法 显示位置正确了

@bigNiuSanMao
Copy link

纠正一下 view showBadge的方法 在layoutIfNeeded之后调用就OK了

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