How to detect changes on UIPickerView ?
- by tristaf
I want to detect changes of UIPickerView value.
If UIPickerView respond to addTarget i used a code like this:
-(void) valueChange:(id)sender {
change = YES;
}
UIPickerView *questionPicker = [[UIPickerView alloc] init];
[questionPicker addTarget:self action:@selector(valueChange:) forControlEvents:UIControlEventValueChanged];
How can i do same things but in a correct way ?
Thanks