如何隐藏选择器视图和日期选择器
我在表视图中使用选择器视图和日期选择器,例如 textfield.inputview=pickerview ..
我想在选择值后隐藏两个视图,我是这样做的:
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
self.paymentText.text=[pickerData objectAtIndex:row];
self.picker.hidden=YES;
}
它隐藏了选择器视图,但是当我再次选择该文本字段选择器视图时不再出现..有人可以帮助我吗?
I am using picker view and date picker in table view like
textfield.inputview=pickerview..
I want to hide both views after selecting value I did it by :
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
self.paymentText.text=[pickerData objectAtIndex:row];
self.picker.hidden=YES;
}
it is hiding picker view but when I again select that textfield picker view does not appear again..Could any one help me?
您是否有一行在点击文本字段时触发的行?
您还可以查看 Apple 的 SimpleUndo 示例
Do you have a line which fires when tapping on the text field?
You can also check out the SimpleUndo Example from apple