मैं UIPickerView मूल्य के परिवर्तन का पता लगाने के लिए चाहते हैं।UIPickerView पर परिवर्तनों का पता कैसे लगाएं?
UIPickerView जवाब addTarget लिए अगर मैं इस तरह एक कोड का इस्तेमाल किया:
-(void) valueChange:(id)sender { change = YES; } UIPickerView *questionPicker = [[UIPickerView alloc] init]; [questionPicker addTarget:self action:@selector(valueChange:) forControlEvents:UIControlEventValueChanged];
मैं कैसे कर सकते एक ही बातें लेकिन एक सही तरीका है?