Re: Customizing a UISwitch?
Re: Customizing a UISwitch?
- Subject: Re: Customizing a UISwitch?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Fri, 04 Mar 2016 23:57:43 +0000
What Gary said ;)
On Fri, Mar 4, 2016 at 6:56 PM Gary L. Wade <email@hidden>
wrote:
> 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 <email@hidden>
> 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 <email@hidden>
> 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 <
> email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden