Question

Here's a really simple question, that I don't have time to check. . (code working, but looks messy, I'll refactor after getting myself informed).

Question:

For an IBOutletCollection what is the order? Is it the order in which the connections were made? Or are tags required if order is important?

Was it helpful?

Solution

You cannot use IBOutletCollection safely without adding an additional property like the tag if the ordering is important.

Sometimes they will retain the order in where the connections were added but sometimes they wont.

There are other similar questions that talk about this:

IBOutletCollection set ordering in Interface Builder

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top