I've created a subclass of UIPickerView. In this subclass I've added a UIToolbar as a subview. The toolbar appears the way I specified in my code, however the done button in the toolbar is not recognizing any touch events.
What am i doing wrong?
Update:
The done button is being created like this,
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneButtonPressed:)];