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

修复QMUIToastView设置Frame时可能会循环调用的问题 #1212

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

修复QMUIToastView设置Frame时可能会循环调用的问题 #1212

wants to merge 7 commits into from

Conversation

jiasongs
Copy link

@jiasongs jiasongs commented Mar 18, 2021

见此issue:#1186
1、此PR是通过设置约束来实现的,我看QMUI里基本没有约束相关的代码,可能不符合QMUI的设计思路。
2、实现方式也可以采用hook QMUIToastView.superview的layoutSubviews的形式,通过+ (nullable NSArray <QMUIToastView *> *)allToastInView:(UIView *)view方法来拿到toastViews,设置Frame

@tencent-adm
Copy link
Member

tencent-adm commented Mar 18, 2021

CLA assistant check
All committers have signed the CLA.

@Tencent Tencent deleted a comment from jiasongs Mar 18, 2021
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

Successfully merging this pull request may close these issues.

2 participants