Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use IBOutletCollection with WatchKit?

I'm tring to use IBOutletCollection to connect multiple interface views. Like this one:

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

But that doesn't show on interface builder, so I cannot use it. Is there any way I could use it with WatchKit Extension?

like image 706
Idan Avatar asked Oct 20 '22 12:10

Idan


1 Answers

As far as I know WKInterfaceController doesn't support IBOutletCollection. If you ctrl + drag from the watch's storyboard to your WKInterfaceController the option for Outlet Connection doesn't show up, and it is actually disabled, so I guess it isn't supported yet:

enter image description here

like image 112
Tiago Almeida Avatar answered Oct 22 '22 03:10

Tiago Almeida