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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:48:38+00:00 2026-06-01T04:48:38+00:00

I am trying to create a UIPickerView inside of a UIActionSheet with a done

  • 0

I am trying to create a UIPickerView inside of a UIActionSheet with a “done” button in a bar on the action sheet above the picker and I am trying to display the action sheet from the tab bar.

here is the code I am using to create my picker:

    _beepPicker = [[UIPickerView alloc] initWithFrame:CGRectMake(0, 0, 320, 216)];
    _beepPicker.showsSelectionIndicator = YES;
    _beepPicker.dataSource = self;
    _beepPicker.delegate = self;

here is the code I am using to create my action sheet (with my “done” button)

_beepPickerActionSheet = [[UIActionSheet alloc] 
                              initWithTitle:nil 
                              delegate:nil 
                              cancelButtonTitle:nil 
                              destructiveButtonTitle:nil 
                              otherButtonTitles:nil];
    UISegmentedControl *doneButton = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObject:@"Done"]];
    doneButton.momentary = YES; 
    doneButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f);
    doneButton.segmentedControlStyle = UISegmentedControlStyleBar;
    doneButton.tintColor = [UIColor blackColor];
    [doneButton addTarget:self action:@selector(dismissBeepPicker:) forControlEvents:UIControlEventValueChanged];
    [_beepPickerActionSheet addSubview:doneButton];

and here is how I’m adding my “done” button:

[_beepPickerActionSheet addSubview:_beepPicker];

and finally, here is how I am trying to display the action sheet:

[_beepPickerActionSheet showFromTabBar:self.tabBarController.tabBar];

The Action Sheet does display… but, I can only see about 30 pixels of the top of the Action sheet????????

Any idea what I may be doing incorrectly?

When I check my debugger… here is what I see for the frame of the Action Sheet

UIActionSheet: 0x6b304f0; frame = (0 455; 320 25);

Screenshot before:

enter image description here

Screenshot after:

enter image description here

  • 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-01T04:48:39+00:00Added an answer on June 1, 2026 at 4:48 am

    Ok… I know what I was doing incorrect… I had to add

    [_beepPickerActionSheet setBounds:CGRectMake(0,0,320,485)];
    

    After I added it to the view.

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

Sidebar

Related Questions

I'm trying to create Custom UIPickerView, something like below.. : http://img824.imageshack.us/img824/3015/pickercustom.png Example : From
I am trying to create a two component UIPickerView, the left side of which
I trying create a class derivated from System.Web.UI.Page and in override Render i set
I'm trying create an immutable object and initialise it from xml config file in
I am trying create a table and add this table into tablecell (table inside
I am trying create a data.frame from which to create a graph. I have
I am trying create system in which I can login from php and then
I'm trying create simple application in C++. This application has to read from file
I'm trying create a template with django but when I execute this sentences in
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can

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.