I have a UIPickerView and The method didSelectRow is not called when tapping on a selected row. I need to handle
Solution touchesBegan: / touchesEnded: worked fine for me when using iOS 4.2/4.3, but they stopped working with iOS. Finally I got this solution which may be helpful: using tap gesture recognition.
IBOutlet UIPickerView *picker;
[picker addGestureRecognizer:
[[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(pickerTapped:)] autorelease]
];
In this case when a user taps on picker view, the selector
-(void)pickerTapped:(UIGestureRecognizer *)gestureRecognizer
is invoked. Worked for me on both iOS 4.2+ / 5.0