Re: show selected image in a segmented control
Re: show selected image in a segmented control
- Subject: Re: show selected image in a segmented control
- From: Jerry Krinock <email@hidden>
- Date: Thu, 26 Nov 2009 20:02:20 -0800
On 2009 Nov 26, at 11:04, Pierre Berloquin wrote:
> I'm using a segmented control with four segments.
> I initialise it with four images.
> It does display the images perfectly but ... it doesn't show which image is
> selected.
I use segmented controls with images and do not have this problem. The selected segment is given a blue-ish background.\
For more evidence, if you have Xcode in all-in-one view, look at the segmented control in the left side of the toolbar which shows "project" vs. "debug" icons. Note that the selected one turns gray-ish.
Maybe your images don't have an alpha mask?
> How can I highlight the selected segment/image?
Sandro's code looks like it will work if you want to do it that way.
_______________________________________________
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