-
Notifications
You must be signed in to change notification settings - Fork 319
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
Crash in iOS 8 when remove a view from UIStackView #35
Comments
我也遇到了同样的问题,请问您解决了吗? |
没解决,放弃了。 wujianbotju [email protected]于2016年11月15日周二 下午2:31写道:
|
稍微调试了一下,问题的原因在于FDStackView的代码实现和系统原生的UIStackView的实现不一致,而且FDStackView没有正确处理FDStackView子view的removeFromSuperView的调用。 系统原生的UIStackView的removeArrangedSubview方法的注释是这样的: 但我们看下FDStackView的removeArrangedSubview实现
|
@wujianbotju 按你的方法解决了,谢谢!! |
我在TableViewCell中使用StackView 重用时会出现重复添加view的问题,发现在addArrangedSubView 或 insertArrangedSubview:atIndex: 中 调用了 [self addSubview:view] 或 [self insertSubview:view atIndex:stackIndex] 但并没有在removeArrangedSubview: 中删除添加的view
状况如下:
崩溃~
iOS 9下没问题~
以下Log
The text was updated successfully, but these errors were encountered: