How is it possible to get a number value from a string that the user inputted?
D Duke Leto macrumors regular Original poster Mar 17, 2008 166 0 Jan 28, 2009 #1 How is it possible to get a number value from a string that the user inputted?
Jeremy1026 macrumors 68020 Nov 3, 2007 2,215 1,029 Jan 28, 2009 #2 Duke Leto said: How is it possible to get a number value from a string that the user inputted? Click to expand... What do you want to do with that number? I can think of a few ways to grab that value, but they are specific to different situations.
Duke Leto said: How is it possible to get a number value from a string that the user inputted? Click to expand... What do you want to do with that number? I can think of a few ways to grab that value, but they are specific to different situations.
D Duke Leto macrumors regular Original poster Mar 17, 2008 166 0 Jan 28, 2009 #3 Do a calculation and set a UISlider's value to that number.
Jeremy1026 macrumors 68020 Nov 3, 2007 2,215 1,029 Jan 28, 2009 #4 Duke Leto said: Do a calculation and set a UISlider's value to that number. Click to expand... Are the inputting the number via a textfield?
Duke Leto said: Do a calculation and set a UISlider's value to that number. Click to expand... Are the inputting the number via a textfield?
Jeremy1026 macrumors 68020 Nov 3, 2007 2,215 1,029 Jan 28, 2009 #6 Duke Leto said: Yes. Click to expand... You can just use Code: [textField.text integerValue] to grab the numeral value of the field. No need to pass it to a string.
Duke Leto said: Yes. Click to expand... You can just use Code: [textField.text integerValue] to grab the numeral value of the field. No need to pass it to a string.
D Duke Leto macrumors regular Original poster Mar 17, 2008 166 0 Jan 28, 2009 #7 Awesome! Thank you for the help! I as looking at the docs for NSNumberFormatter .. .
Jeremy1026 macrumors 68020 Nov 3, 2007 2,215 1,029 Jan 28, 2009 #8 Duke Leto said: Awesome! Thank you for the help! I as looking at the docs for NSNumberFormatter .. . Click to expand... No problem man.
Duke Leto said: Awesome! Thank you for the help! I as looking at the docs for NSNumberFormatter .. . Click to expand... No problem man.