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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:35:23+00:00 2026-05-23T04:35:23+00:00

I am pulling my hair out with this one. I have a table inside

  • 0

I am pulling my hair out with this one.

I have a table inside a popover which allows the user to edit some data. Most of these editable cells need the user to enter data via the keyboard, but one needs a UIDatePicker. When the UIDatePicker is presented to the user, it slides in from the bottom of the popover by grabbing the size of the view and performing an animation. However, if this happens after the keyboard is dismissed then the size of the view is grabbed before the popover is reset back its original position (i.e. when the popover is resizing back to normal size after being ‘squashed” toward the top the the screen). This leaves the UIDatePicker halfway up the popover.

I have tried adding a delay, and using an UIKeyboardWillHideNotification, but I cannot get this to work.

How can I wait for the popover to finish resizing before I grab the size of the view and perform the animation?

Update 1

I managed to work this out myself, but I’ll post the answer here just incase anyone else needs it. Basically I set up a CGRect variable which gets populated with the views bounds when the view loads. Then instead of grabbing the bounds of the view each time I want to animate the UIDatePicker in, I simply use the CGRect variable instead.

Update 2

The above fix works in most cases, but not for all. The problem I am now having is when a new popover is displayed before the keyboard is fully dismissed (i.e. half way down it’s animation out). This gives bounds at it’s current size, before it is then resized to the actual size it needs to be. Also, the popover doesn’t seem to resize back to its original size once the keyboard is dismissed.

Any ideas folks?

  • 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-23T04:35:24+00:00Added an answer on May 23, 2026 at 4:35 am

    Solved.

    When keyboard is dismissed in the popover delegate, I check that the popover is being displayed and then reposition it to its original size and location. I have the code if anyone is interested. Just comment me up.

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

Sidebar

Related Questions

I'm pulling my hair out on this one. I have a site which is
Pulling my hair out over this one. I have one wordpress install at /2009
I am pulling me hair out about this one. http://www.nettunes.co.za/build/contact.php I have an image
I've been pulling my hair out on this one all afternoon. Basically, I have
I'm pulling my hair out over this one. I have an app that when
Hey all, I'm pulling my hair out on this one. I've checked all my
This has me pulling my hair out. We have a workflow, hosted as a
I have been having this problem and been pulling my hair out over it.
I've been pulling my hair out with this one, although I'm certain the solution
Good day, I am pulling my hair on this one.. I have Active Directory

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.