I often use IBOutletCollection to be able to reference UIView objects sequentially.
For example, I can enumerate ordered list of UIButtons, get numerical indice of them, without making same number of IBOutlet for each of them. It's very useful, especially if your view contains somethings like numeric key buttons.
However, for this method to work properly, the IBOutletCollection MUST be ordered, and must return same index number for the object. When I have been using .xib, the order of objects in IBOutletCollection array is same as the order of connecting the objects to this IBOutletCollection in Interface Builder.
The problem occurs when I try to do same thing within a Scene of the Storyboard. I am not sure if it has to do with UIViewController or Storyboard, but same solution which have been working for me when I use separate .xib doesn't work properly.
The index number is not ordered and changed when the object is instantiated again.
Does anyone experience the same problem? Or is there anything I overlooked?