Open Aktar opened 8 years ago
Hi @Aktar, thanks for opening this issue. Do you have any more information about this? Why is this necessary in order to avoid that crash? Links to resources would be appreciated.
As far as I can see WillMoveToSuperview is called when a UIView is a subview inside another UIView and that super view changes.
So I guess it is OK to remove all subviews in StackView from the super. But shouldn't they be attached again to the new one? Or how does that work.
Hi guys, I had the same issue while having a list of items where each one contains a StackView. I managed to workaround the issue by creating a CustomStackView inheriting from StackView and overriding WillMoveToSuperview method like @Aktar suggested.
Hey, I'm using TZStackView, I noticed that if I go back and forth from a view containing a StackView, at some point your going to have this error :
You can prevent this by overriding
WillMoveToSuperview
in StackView.cs