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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:04:09+00:00 2026-05-13T10:04:09+00:00

I have a table view that has embedded UITextFields for entering some data. It

  • 0

I have a table view that has embedded UITextFields for entering some data. It also has two other fields that popup a UIPickerView and a UIDatePicker – as demonstrated in the DateCell example from Apple.

Mostly it works but I can’t figure out how to cleanly transition from the text field keyboard to the other pickers – one slides out, one slides in – it looks weird and the scroll position on the table view sometimes gets screwed up – with everything scrolled off the top.

What I’d like to do is replace the text field keyboard without it animating away and without it growing the table view back to full size.

Any clues?

  • 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-13T10:04:10+00:00Added an answer on May 13, 2026 at 10:04 am

    First, here is a screencapture showing how this looks.

    Implement UITextFieldDelegate and display a “popup” containing a UIPickerView.

    - (void)textFieldDidEndEditing:(UITextField *)textField {
    
        UIPickerView *picker = [[UIPickerView alloc] 
                                     initWithFrame:CGRectMake(0, 244, 320, 270)];
        picker.delegate = self;
        picker.dataSource = self;
        [self.view addSubview:picker];
        [picker release];
    }
    

    When the keyboard disappears, a picker view is then visible.

    If you want to take this a bit further, you can animate the UIPickerView “slide in” like the keyboard.

    - (void)viewDidLoad {
    
        //picker exists in the view, but is outside visible range
        picker = [[UIPickerView alloc] initWithFrame:CGRectMake(0, 480, 320, 270)];
        picker.delegate = self;
        picker.dataSource = self;
        [self.view addSubview:picker];
        [picker release];
    }
    
    //animate the picker into view
    - (void)textFieldDidEndEditing:(UITextField *)textField {
    
        [UIView beginAnimations:@"picker" context:nil];
        [UIView setAnimationDuration:0.5];
    
        picker.transform = CGAffineTransformMakeTranslation(0,-236);
        [UIView commitAnimations];
    
    }
    
    //animate the picker out of view
    - (void)textFieldDidBeginEditing:(UITextField *)textField {
    
        [UIView beginAnimations:@"picker" context:nil];
        [UIView setAnimationDuration:0.5];
    
        picker.transform = CGAffineTransformMakeTranslation(0,236);
        [UIView commitAnimations];
    }
    
    //just hide the keyboard in this example
    - (BOOL)textFieldShouldReturn:(UITextField *)textField {
        [textField resignFirstResponder];
        return NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 354k
  • Answers 354k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Or you can use the PHP function headers_list() May 14, 2026 at 8:24 am
  • Editorial Team
    Editorial Team added an answer Here are the configure options that I used to build… May 14, 2026 at 8:24 am
  • Editorial Team
    Editorial Team added an answer When it come to the repository format and layout, I… May 14, 2026 at 8:24 am

Related Questions

The environment is Oracle 9 & 10. I do not have DBA level access.
I've got a table structure I'm not really certain of how to create the
I am a cocoa newbie trying to create an iPhone app including Core Data.
I'm struggling to create a table view controller that has anything more than just
I have a MySQL database that has a few very simple tables. I would

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.