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 4055994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:46:15+00:00 2026-05-20T14:46:15+00:00

so, basically I need to know if there is a way to have a

  • 0

so, basically I need to know if there is a way to have a observer o another method that is called when the keyboard is hidden.

The problem i have is that after dismissing the Keyboard, I commit 2 Animations, one to take the view to the original position (since I move up the view so the user can see the textfield while typing) and an Animation Flipping the View but the Flip occurs before the Keyboard is fully hidden so I have a little graphic glitch.

I’ve tried sleep(), and another wait methods without luck.

The Code Basically is this

- (BOOL)textFieldShouldReturn:(UITextField *)textFieldi{

[textFieldi resignFirstResponder];
     [UIView beginAnimations:nil context:NULL];

     [UIView setAnimationDuration:1.0];

     [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];

     [self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];

     CuantoFaltaiOSAppDelegate * del = [CuantoFaltaiOSAppDelegate instance];

     del.headerView.frame = CGRectMake(0, 20, del.headerView.frame.size.width, del.headerView.frame.size.height);

     [UIView commitAnimations];

     return YES;
}

The problem is that the Keyboard isn’t fully Hide and the Flip is perfomed, so i need a way to wait for it.

  • 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-20T14:46:16+00:00Added an answer on May 20, 2026 at 2:46 pm

    Register for the UIKeyboardDidHideNotification notification.

    [[NSNotificationCenter defaultCenter] addObserver:(id)
                                             selector:(SEL)
                                                 name:(NSString *)
                                               object:(id)];
    

    Example:

    Subscribe to the UIKeyboardDidHideNotification as follows (put this in your viewWillAppear: method):

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil];
    

    This assumes you have a method called keyboardDidHide: (this is where your animation logic will reside)

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

Sidebar

Related Questions

I basically need to check if there is an easier way to do this
Does anyone know a way to have two columns in a SP2010 list that
I basically need to know how to import SQL code into Access. I've tried
TL;DR I need to know which characters are deleted with Win32. Basically, I need
basically need to change the value that - admin_url() returns any idea?
I basically have the same problem in this questions: Flash Video still playing in
I basically have an array in php which contains a string, I basically need
I have a block of code that basically intializes several classes, but they are
I have two MySQL queries in my PHP code. Basically I need the two
basically I have a list of posts, and I am wondering if I need

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.