Look instead at the set…:forState: methods. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/
> On Mar 4, 2016, at 3:40 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote: > > I replaced the UISwitch with a UIButton. But when I set the button's new > image in the event method (myButton.imageView.image = ...), still nothing > happens (the button's image doesn't redraw). What do I have to do to cause > this to happen? > -Carl > >> On Mar 4, 2016, at 2:00 PM, Gary L. Wade <garyw...@desisoftsystems.com> >> wrote: >> >> Maybe the docs should say iOS 7 and later since that's what it means. You >> can't do this in 7, 8, 9, or X/10/whatever iOS is coming this fall. It >> shouldn't be hard to roll your own UIControl subclass or work with the >> current classes. >> -- >> Gary L. Wade (Sent from my iPhone) >> http://www.garywade.com/ >> >>> On Mar 4, 2016, at 11:10 AM, Carl Hoefs <newsli...@autonomy.caltech.edu> >>> wrote: >>> >>> iOS 9.2 >>> >>> The 2016 Apple documentation shows UISwitch -onImage and -offImage >>> properties. They're not noted as deprecated, except for iOS 7, yet they >>> don't seem to do anything on iOS9. Xcode shows these properties to be >>> settable. I have set them both, in Xcode and in my app code, but they seem >>> to have no effect on the storyboard or when running the app. >>> >>> What's the trick in customizing a UISwitch with different images? If this >>> functionality is busted, is there another way to achieve it? I don't see an >>> on/off style button in the palette. >>> -Carl > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com