ToolBar at the top of UIPIckerView in xcode?
问题 I need to add a toolbar with done button on the top of UIPickerView . I don't want to use actionSheet because I want the rest of the view to be active. I've gone for the following code: - (BOOL)textFieldDidBeginEditing:(UITextField *)textField { [txtstate resignFirstResponder]; pickerView = [[UIPickerView alloc]init] ; pickerView.frame=CGRectMake(10, 75, 180,20); pickerView.delegate = self; pickerView.showsSelectionIndicator = YES; UIToolbar* toolbar = [[UIToolbar alloc] init]; toolbar.frame