0
votes

How can I put the off/on image for Switch control?

I already tried assigning values to

ourSwitch.onImage = ourImage
ourSwitch.offImage = ourImage

trough the storyboard designer.

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/#//apple_ref/occ/instp/UISwitch/onImage

1

1 Answers

0
votes

What about

ourSwitch.onImage = ourImage
ourSwitch.offImage = ourImage

?