Can I use IBOutletCollection with WatchKit?

I am trying to use IBOutletCollection to connect multiple views of an interface. Like this:

@property (weak, nonatomic) IBOutletCollection(WKInterfaceLabel)
        NSSet *interfaceLables;

But this does not appear in the interface builder, so I cannot use it. Can I use it with the WatchKit extension?

+4
source share
1 answer

As far as I know, WKInterfaceControllerdoes not support IBOutletCollection. If you press Ctrl + drag from the clock storyboard to WKInterfaceController, the option for Outlet Connection will not appear, and it is actually disabled, so I think it is not yet supported:

enter image description here

+3
source

All Articles