Skip to content

Crash when adding a new arranged subview #83

@zeusent

Description

@zeusent

So, first of all let me say thank you! This little fallback solution for UIStackView is awesome.

I've been trying to use it but I do have a problem. I create my OAStackView in Interface Builder where I pre-populate it with some subviews. But then, in code I want to add some more views and I thought that the method insertArrangedSubview:atIndex is what I need.

The problem is that when I do that it crashes. Here's a screen shot of the line that causes the crash:

screen shot 2016-02-26 at 11 23 39

As you can see it seems that self.mutableArrangedSubviews is empty and I've looked all over your code to see where it get's populated, if it ever does, and I can't really find the place that does that.

So, do you think this is a bug or is there a way you can help me?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions