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

auto布局嵌套flowLayout布局,当flow高度变化时不能自动刷新auto高度 #95

Closed
hbxfnsm opened this issue May 30, 2019 · 1 comment

Comments

@hbxfnsm
Copy link

hbxfnsm commented May 30, 2019

 MyFlowLayout *flow;
// ...flow属性
__weak typeof(MyFlowLayout *) weakFlow = flow;
[flow setEndLayoutBlock:^{
    // 方式1
    [weakFlow setNeedsLayout];
    // 方式2
    // [weakFlow invalidateIntrinsicContentSize];
}];

需要手动调用刷新才能刷新父视图(auto布局)的高度

@youngsoft
Copy link
Owner

问题已经修复,请升级到1.8.0版本。后续对布局视图中添加和删除子视图不再需要手动调用invalidateIntrinsicContentSize方法了。

@hbxfnsm hbxfnsm closed this as completed Jul 24, 2019
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

2 participants