View Full Version : uitextfield with numberpad - resign keyboard

Dec 16, 2008, 04:18 AM

I have a uitextfield with keyboard type as UIKeyboardTypePhonePad. There is no return or done button in the keypad.I used a uibutton filed and invoked the method and inside that method i used the code [txtfield resignFirstResponder], it didnt work out. Is there a way to resign the keyboard?

Dec 16, 2008, 01:05 PM
that should work. you probably didn't hook up your IBOutlets

Dec 16, 2008, 11:18 PM

I am using the code to create the textfield. I solved the problem. I was having the uibutton in the view cell so i didnt work.. Now I just used the navigation button and added the resignfirstresponder method in the calling method..It started working.

Thank you for all your response.