Re: Is it possible to set UISlider intervals?
Re: Is it possible to set UISlider intervals?
- Subject: Re: Is it possible to set UISlider intervals?
- From: Jonathon Kuo <email@hidden>
- Date: Tue, 10 Aug 2010 18:40:55 -0700
On Aug 10, 2010, at 5:43 PM, Devraj Mukherjee wrote:
> Hi all,
>
> I am using UISliders in my iOS app.
>
> I can't see a way of setting the slide value interval. Is this
> possible? Or do I have to calculate the change based on the 0.1
> increases?
>
> Minimum value set to -20 and Max to 20 and I want the slider to
> increment by 0.5 on a slide.
UISliders do not 'increment' their value, they increase or decrease their value according to how they're touched. You can use these properties to set the slider limits:
slider.minimumValue = 0.0;
slider.maximumValue = 0.5;
This is also possible to set within Interface Builder.
_______________________________________________
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