uitextfield with numberpad - resign keyboard

Discussion in 'iOS Programming' started by deepamalini, Dec 16, 2008.

  1. macrumors newbie

    Joined:
    Nov 12, 2008
    #1
    Hi,

    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?
     
  2. macrumors regular

    Joined:
    Mar 24, 2008
    #2
    that should work. you probably didn't hook up your IBOutlets
     
  3. thread starter macrumors newbie

    Joined:
    Nov 12, 2008
    #3
    Hi,

    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.
     

Share This Page