Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 352215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:42:58+00:00 2026-05-12T11:42:58+00:00

Is there a way to make a keyboard disappear without resignFirstResponder ? I have

  • 0

Is there a way to make a keyboard disappear without resignFirstResponder? I have a UITextField, and I’d like it to be able to accept new text and still have the insertion point (flashing cursor) visible without the keyboard being on screen.

When I perform a [textField resignFirstResponder] I can still insert text, by appending to the textField.text, but I can’t see the insertion point anymore.

Is there a standard way to make the keyboard animate out, while having my textField remain first responder?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:42:58+00:00Added an answer on May 12, 2026 at 11:42 am

    Found an answer to this question. It’s not standard though, and like Dave says, may be taboo for the app reviewers. Using the code from this page as a starting point:

    http://unsolicitedfeedback.com/2009/02/06/how-to-customize-uikeyboard-by-adding-subviews/

    I added in an animation block. You can dismiss the keyboards view with a standard looking animation, but whatever is first responder will retain that status. Really, the keyboard is just hidden off screen.

    - (void)hideKeyboard 
    {
      for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) {
    
        // Now iterating over each subview of the available windows
        for (UIView *keyboard in [keyboardWindow subviews]) {
    
          // Check to see if the view we have referenced is UIKeyboard.
          // If so then we found the keyboard view that we were looking for.
          if([[keyboard description] hasPrefix:@"<UIKeyboard"] == YES) {
    
            // animate the keyboard moving
            CGContextRef context = UIGraphicsGetCurrentContext();
            [UIView beginAnimations:nil context:context];
            [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
            [UIView setAnimationDuration:0.4];
    
            // remove the keyboard
            CGRect frame = keyboard.frame;
            // if (keyboard.frame.origin.x >= 0) {
            if (keyboard.frame.origin.y < 480) {
              // slide the keyboard onscreen
              //frame.origin.x = (keyboard.frame.origin.x - 320);
    
              // slide the keyboard onscreen
              frame.origin.y = (keyboard.frame.origin.y + 264);
              keyboard.frame = frame;
            }
            else {
              // slide the keyboard off to the side
              //frame.origin.x = (keyboard.frame.origin.x + 320);
    
              // slide the keyboard off
              frame.origin.y = (keyboard.frame.origin.y - 264);
              keyboard.frame = frame;
            }
    
            [UIView commitAnimations];
          }
        }
      }
    }
    

    I wrote in code to dismiss the keyboard to the left and to the bottom of the screen. I don’t know what will happen when you eventually resignFirstResponder, but it might be an idea to reset the keyboard frame when you do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to have a UITextField with the text read only but
I know there's a way to make the enter-key on the keyboard confirm the
Is there any way to make a JButton look like it has the input
Is there a way to modify or make your own iPhone keyboard so that
Like seriously after going through this... Easy way to dismiss keyboard? ... I have
I was wondering if there is a way to make an easy keyboard shortcut
Is there any way to hide or do not show the keyboard without calling
Is there a way to make a button's background color change from a color
Is there a way to make MySQL cause some kind of error when doing
Is there a way to make Timeline start recording EXACTLY at the time where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.