Home Features Docs Blog Support GitHub

Hod do I use the IBOutletCollection annotation?


(Christian Hahn) #1

Has anybody successfully used the IBOutletCollection annotation for MOE?

I’ve been using Kotlin to write IBOutlets like this:

@IBOutlet
@Property
@Selector("button1")
external fun getButton() : UIButton

But I can’t find any documentation or examples for IBOutletCollection - it would really come in handy. Thank you.


(Roland Vigh - Migeran) #2

Hi!

Please check samples:

Best Regards,
Roland


(Christian Hahn) #3

Hi, Roland

I did look through all of the Kotlin sample projects, and many of the Java samples as well and did not see examples of @IBOutletCollection specifically. If you know of a project that uses it, could you point me there?

To clarify, I have been able to get @IBAction and @IBOutlet working. Those have examples and are very straightforward. @IBOutletCollection seems to require a different usage that I cannot find. I see that the annotation is included in the library, I just cannot find how to use it.