Daniel Gomez Rico
Daniel Gomez Rico

Reputation: 15945

Switch onImage offImage attribute for iOS 8?

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

Upvotes: 0

Views: 315

Answers (1)

BaSha
BaSha

Reputation: 2406

What about

ourSwitch.onImage = ourImage
ourSwitch.offImage = ourImage

?

Upvotes: 0

Related Questions