Created
July 22, 2012 19:06
-
-
Save samdmarshall/3160728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float value = (slider.value - slider.minimumValue); | |
float px_per_val = (slider.frame.size.width)/(slider.maximumValue - slider.minimumValue); | |
float position = (px_per_val * value) + 20; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment