in my view I have 4 textfields,I have dragged it from xib,
so when i click on first three textfields ,I want o open a keyboard and when i click on the 4th textfield only i want to open a UIPickerView
Below i wrote the code,which is opening the UIPickerView for all the text fields..
- (void)textFieldDidBeginEditing:(UITextField *)textField{
[textField resignFirstResponder];
[self uiPickerPopUpDisplay];
}
So friends please help me out on how shall i do it..
Thanks&Regards
Ranjit
You should check which text field it is in this method.
This assumes that your class has a reference to
theFourthTextField. If it doesn’t you can add one and connect it to your XIB file as anIBOutlet.In interface:
In implementation:
And connect your text field to
theFourthTextFieldin Interface Builder.