0

My iPhone app works fine, and all parts work fine, however it lets you score certain things, but how can i limit the score for example at the minute you could rate item x "609573095730" but i only want to to allow the user to score between 0 and 100, how would i do this, i can imagine it to be very simple, but i can't seem to work it out my self.

Side note: Score is inputed via numerical keypad (like the phone one)

Alex Trott
  • 4,576
  • 4
  • 23
  • 30
  • 1
    If you only want the user to be able to score between 0 and 100, why not just use a UISlider that clips to the nearest 5? – John Parker Jan 09 '11 at 21:04

1 Answers1

0

So, when you receive the input, parse it to NSInteger or NSNumber and then check if it is between 0 and 100

The other solution is using a UIPickerView from 0 to 100:)

vodkhang
  • 18,639
  • 11
  • 76
  • 110