• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: show selected image in a segmented control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: show selected image in a segmented control
      • From: Sandro Noël <email@hidden>
References: 
 >show selected image in a segmented control (From: Pierre Berloquin <email@hidden>)

  • Prev by Date: Re: Core Data - any way to back it with something other than SQLite 3?
  • Next by Date: Re: show selected image in a segmented control
  • Previous by thread: Re: show selected image in a segmented control
  • Next by thread: Re: show selected image in a segmented control
  • Index(es):
    • Date
    • Thread