-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing text labels #87
Comments
Hey, Thanks! :-) You should be able to use the The custom slider in the example property uses numberFormatterOverride but just sets a standard numberformatter rather than anything specific, but you should be able to just make a number formatter yourself using something like this guy (quick google to find this blog post, I've not fully run through it myself!) http://blog.codehatcher.com/custom-nsnumberformatter-in-swift |
Thanks for quick reply, the problem is that at the end I need update only one label value, but formatter will update both values. The idea is when right handle reaches maximum I need add "+" sign to amount. For example $5000+ |
Ah, gotcha. Yeah that's a bit more tricky, sorry. It might be that you could compared the selectedMinimum and selectedMaximum with the value you're formatting, to try to guess which handle it is, although I realise that's not ideal. There's also leftHandleSelected and rightHandleSelected bools on TTRangeSlider itself, but annoyingly they're not exposed in the header, they're just properties in the implementation, so you wouldn't be able to get to them without some hacking or editing. |
Hey, thanks for you response I came up with very tricky solution. Here it is, I know it's to much just for changing text label value, but still for me it was only solution :)
|
Hello,
I'm using your library, it's awesome and fits all my needs. I wanted to ask is there any possibility to access text label in order to change text?
One more note, I'm using slider via bridging header and swift.
The text was updated successfully, but these errors were encountered: