Wednesday 2 October 2013

How to wire-up UISegmentedControl from a prototype cell?

How to wire-up UISegmentedControl from a prototype cell?

I have a UISegmentedControl defined in my storyboard within a prototype
cell. Trying to plug the control into an IBOutlet results in the Xcode
error "Couldn't compile connection". After some searching, I found this
error message is because IBOutlet can't be used with a prototype cell in
this way. Is there a way to access the UISegmentedControl* through the id
parameter of an IBAction wired up to the control?

No comments:

Post a Comment