+ Reply
Results 1 to 4 of 4
  1. #1
    What's Jailbreak?
    Join Date
    Dec 2007
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Closing UITextField keypad

    hey im having a problem with my textfield closing when hitting the DONE button. i have entered this code into my MainView.m file

    -(BOOL) textFieldShouldReturnUITextField *)textFeild{
    [textFeild resignFirstResponder];
    return YES;
    }

    but it doesnt seem to close the keypad still... any suggestions? thanks a lot!!!

  2. #2
    Livin the iPhone Life 461am's Avatar
    Join Date
    Aug 2008
    Location
    Houston, TX
    Posts
    1,241
    Thanks
    28
    Thanked 183 Times in 159 Posts

    I'm just going to throw this out there. You spelled 'field' wrong halfway through that.

    or maybe that's how it is. I dunno, just guessing.
    Last edited by 461am; 11-13-2008 at 11:29 PM. Reason: Automerged Doublepost

  3. #3
    What's Jailbreak?
    Join Date
    Dec 2007
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Ohh your right! but i changed it to the correct spelling and still no change! I'm so frustrated!!

  4. #4
    What's Jailbreak?
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hey what is the keyboard type u are using....if u use a keyboard other than default there is no return button, so an alternative such as a button or touches u got to use to do the resignFirstResponder on the textfield instance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts