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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:54:11+00:00 2026-06-18T07:54:11+00:00

I have a UIDatePicker in count down timer mode . UIDatePicker by default is

  • 0

I have a UIDatePicker in count down timer mode . UIDatePicker by default is not supporting auto resizing. So I manually set the frame to resize for the landscape orientation

- (void) resizeDatePicker: (UIInterfaceOrientation)orientation
 {
    if (UIInterfaceOrientationIsPortrait(orientation)) 
      {
    self.timePicker.frame = CGRectMake(0, 44, 320, 216);
      }
    else 
     {
    self.timePicker.frame = CGRectMake(0, 44, 480, 162);
     }
  }

Its works in all other modes except for count down timer. In count down mode it’s not appearing clearly.

UIDatePicker in landscape

  • 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-06-18T07:54:12+00:00Added an answer on June 18, 2026 at 7:54 am

    Solved my problem.. Iam posting my answer here.. may help others. In count down timer mode you cannot resize the frame directly. So I added the date picker as subview of a view then apply CGAffineTransformMakeScale to the view. Then I set the frame to appropriate position also.

    if (UIInterfaceOrientationIsPortrait(orientation)) 
    {
    
        self.pickerView.transform = CGAffineTransformIdentity;
        self.pickerView.frame =CGRectMake(0,40, 320, 216);
    
    }
    else 
    {
    
        self.pickerView.transform = CGAffineTransformMakeScale(0.65, 0.65);
        self.pickerView.frame =CGRectMake(0,40, 480, 140);
    
    }
    

    It will reduce the size of the picker by 65%. PickerView is the view contains the picker.
    The following question help me to solve this problem

    1. How to change UIPickerView height
    2. Can We resize the UIDatePicker View in iPhone
    3. Is there any way to resize the UIPickerView so that I can see completely it in center of my application?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIDatePicker on my view,I have set DatePicker in time mode. bydefault
I have a UIDatePicker that well, allows you to select a date (not time).
If I have a UIDatePicker, and I wish to set the minimum and maximum
I have multiple View Controllers set up that have a UIDatePicker in each view.
When I create a new UIDatePicker with its Mode set to a CountDownTimer, it
I have an UIDatePicker and want to change it's mode on the fly. Basically
I have a UIDatePicker which is showing date and time by default.. but i
Possible Duplicate: NSDateComponents of an NSDate I have set up two UIDatePicker s in
I have a UIDatePicker that is set to fr_FR so I have on the
I have created UIDatePicker and added target for event UIControlEventValueChanged . Default value of

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.