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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:48:23+00:00 2026-06-10T02:48:23+00:00

I display a picker view in an actionsheet in my iPhone app; that is,

  • 0

I display a picker view in an actionsheet in my iPhone app; that is, I have a button in a view which triggers an actionsheet that holds a picker view. It works great, except when the user rotates the device. When the user displays the view in landscape mode and then touches the button for the actionsheet, the pickerview does appear, but it looks jacked up. On the other hand, when the user loads the view in portrait mode and then touches the button which prompts the actionsheet, it looks ok. Any thoughts as to what might be going on here?
This is when the user opens the actionsheet from a view that's already in landscape mode

This is how it looks when the user opens the view in portrait, and then turns the device to 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-10T02:48:24+00:00Added an answer on June 10, 2026 at 2:48 am

    Make sure you configure the bounds of the action sheet and the frame of the pickerview to suit the orientation you’re using.

    I’m using the following settings for landscape:

    [self.sheet setBounds:CGRectMake(0, 0, 480, 400)];
    CGRect pickerFrame = CGRectMake(0, 40, 480, 180);
    closeButton.frame = CGRectMake(420, 7.0f, 50.0f, 30.0f);
    

    And the following for portrait:

    [sheet setBounds:CGRectMake(0, 0, 320, 500)];
    CGRect pickerFrame = CGRectMake(0, 40, 0, 0);
    closeButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f);
    

    Good luck!

    //Seto

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

Sidebar

Related Questions

I have created a sample picker-view which will display some details. Setting the Background
I have a recipient picker view. But I want to display only contacts that
I have a picker view that displays output in a textfield. It is for
I have a view that is presented when a user clicks on a button
I'm working on a grid view that will display cells that will have some
I am opening an email sheet to send a file. It works great except
I use Date Picker in My App I want that when I select Date
I am building an applicaiton for the iPhone that will display upcoming and past
I have a simple table which has a some information displayed. To view the
I would like to display a different view than the standard keyboard (a picker

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.