objective c - How do you connect a set of (UILabels, UIButtons) etc. to an IBOutletCollection in one shot? -
In the storyboard, I selected a dozen UIL Adults and ready for ctrl-drag and ready IBoletlet Selection statement:
@ Property (strong, non-creative) IBOutletCollection (UILabel) NSArray * myLabels;
It appeared to work - i.e. the property statement magically highlighted and the connection appears to be all 12 items selected in the storyboard. It proved to be a major fake: Inspector noticed that only one of the 12 connections was made, and to complete all the connections, repeat the CPU-drag operation 11 times with each label.
Is there a way to create all the connections together for an outlet collection? It seems like there should be (or at least some negative feedback, if you can not).
Comments
Post a Comment