• 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: Altering the size of UISlider's “slider ball”
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Altering the size of UISlider's “slider ball”


  • Subject: Re: Altering the size of UISlider's “slider ball”
  • From: Carl Hoefs <email@hidden>
  • Date: Tue, 25 Nov 2014 21:56:25 -0800

> On Nov 25, 2014, at 6:10 PM, Roland King <email@hidden> wrote:
>
>> On 26 Nov 2014, at 9:58 am, Carl Hoefs <email@hidden> wrote:
>>
>> iOS 8
>> Is there some way (in IB or programmatically) to alter the size of the “slider ball” of a UISlider?
>> -Carl
>>
> You can’t specify the size of it, no, but you can make an image of your own the size, shape and colour you want and replace it entirely. Not ideal as it changes from iOS release to release, the current one appears to be a white circle with a thin grey border and a drop shadow, pretty easy to replicate, could probably even generate the image in code if you wanted.

Got it to work using -setThumbImage: and -thumbRectForBounds:trackRect:value:
Thanks!
-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


References: 
 >Altering the size of UISlider's “slider ball” (From: Carl Hoefs <email@hidden>)
 >Re: Altering the size of UISlider's “slider ball” (From: Roland King <email@hidden>)

  • Prev by Date: when has AutoLayout finished its work?
  • Next by Date: Re: when has AutoLayout finished its work?
  • Previous by thread: Re: Altering the size of UISlider's “slider ball”
  • Next by thread: when has AutoLayout finished its work?
  • Index(es):
    • Date
    • Thread