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

  • Home
  • SEARCH
  • 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 6875051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:16:20+00:00 2026-05-27T04:16:20+00:00

I implemented the UIDatePicker in iPhone and it’s working correctly. The same code I

  • 0

I implemented the UIDatePicker in iPhone and it’s working correctly.

The same code I tried with iPad but it is not showing me UIDatePicker.

I read somewhere that I need to show it with UIPopOverController and find this
link but it is not showing the proper code.

I can’t make a separate XIB for that. I have to implement it by code itself.
Mine is IOS5.

I use the following code:

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
    if (textField.tag == 1)
    {
            [self showDatePickerIniPad];
      }
}
   -(void)showDatePickerIniPad
 {
     UIViewController *popoverContent = [[UIViewController alloc] init];
     UIView *popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
     popoverView.backgroundColor = [UIColor whiteColor];
     datePicker.frame = CGRectMake(0, 0, 320, 300);
     [popoverView addSubview:datePicker];
     popoverContent.view = popoverView;
     popoverContent.contentSizeForViewInPopover = CGSizeMake(320, 244);

     UIPopoverController *popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent];
     [popoverController presentPopoverFromRect:CGRectZero inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];

     txt_FromDate.inputView = datePicker;
 }
  • 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-27T04:16:20+00:00Added an answer on May 27, 2026 at 4:16 am

    Since your question is more on the lines of learning rather than a specific doubt or question, i am posting tutorial links. These 2 tutorials should solve your problem(s) –

    UIPickerView Basics

    UIDateView Components

    UPDATE: Also check these highly relevant links from stackoverlfow itself –

    UIDatePicker in UIActionSheet on iPad

    https://stackoverflow.com/questions/5830585/uidatepicker-inside-uiactionsheet-ipad

    blank UIDatePicker on iPad in mode UIDatePickerModeDateAndTime

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

Sidebar

Related Questions

I implemented a drop down navigation menus in my blog, but it's not working
I have implemented a ui datepicker which works perfectly in FF but not in
I implemented strstr() myself,the code works fine for all strings but when the string
I implemented a small OOP library in Lua, and two things are not quite
Having implemented CLogClass to make decent logging I also defined macro, but it works
I implemented a quick search in my application. But when I turned the screen,
I implemented the delegate-callback pattern between two classes without retaining the delegate. But in
So I implemented a UIDatepicker in one of my applications for scheduling and autodialing
I implemented lazy image load for my UITableView using NSUrlConnection. This is all working
this page offered sample code that would be ideal for a task I'm working

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.