I'm trying to replicate the Stanford Matchismo game from "Developing ios7 apps for iphone and ipad" in iTunesU in Swift.
On page 77 of the 3rd lecture slides, it shows using an IBOutletCollection
which isn't an option on Swift. The Swift doc example shows one example that has an array of IBOutlet
, but I can't figure out how to make Interface Builder connect multiple outlets to the same IBOutlet
/IBOutlet
Array.
Has anyone figured out how to do this yet?
I know that I can create 12 outlets and deal with it that way, but I'd like to make this work as closely as possible to the example in the lecture slides.
@IBOutletCollection
like it does for@IBOutlet
and@IBAction
, and it isn't mentioned on the Apple docs page that talks about those latter two. Seems like it's either not here yet or it's not coming. – Montemayor