我有表视图。在每一行我都有文本字段,三个文本字段有 UIPickerView,两个是可编辑的,问题是当我在点击可编辑文本字段键盘后点击选取器的文本字段时不会消失这里是代码
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
tf_Selected = (UITextField*)textField;
if ([textField.placeholder isEqualToString:@"Work Order "]) {
if (dicWorkOrderNoData.count > 0)
{
[ActionSheetStringPicker showPickerWithTitle:@"Select Work Order" rows:[dicWorkOrderNoData allValues] initialSelection:0 target:self successAction:@selector(selectPicker_ActionHandler:) cancelAction:@selector(cancelSheet_ActionHandler) origin:textField];
}
else if (textField.tag == DateField_UptoCurrentDate)
{
[ActionSheetDatePicker showPickerWithTitle:@"Select Date" datePickerMode:UIDatePickerModeDate selectedDate:[NSDate date] maximumDate:[NSDate date] target:self action:@selector(selectDate_ActionHandler:) cancel:@selector(cancelSheet_ActionHandler) origin:textField];
return NO;
}
else
{
return YES;
}
}