I have a text field , and i need when the user presses it to show a custom picker.
The picker is shown fine , but the problem is that the keyboard appears on the bottom
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { if(textfield == yourtextField) { [textfield resignFirstResponder]; // Show you custom picker here.... return NO; } }
and you need to implement the uitextfielddelegate in the controller.
uitextfielddelegate
and give assign the delegate to yourtextField.
yourtextField