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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:20:50+00:00 2026-05-30T18:20:50+00:00

I have set up this combo box and it works great. Now I have

  • 0

I have set up this combo box and it works great. Now I have a scene that needs to scroll down and I have implemented a scroll view that takes up the entire scene. I have 4 of these combo boxes on the scene and I can’t get them working properly. In my ViewController.m if I change the “self.view addSubview” to “self.theScroller addSubView” I can get the ComboBox to load on the scroller, when clicked it throws up the normal keyboard and doesn’t load the UIPickerView.

 NSMutableArray* fieldTeamsArray = [[NSMutableArray alloc] init];
[fieldTeamsArray addObject:@"Field Team 1"];
[fieldTeamsArray addObject:@"Field Team 2"];
[fieldTeamsArray addObject:@"Field Team 3"];

fieldTeams = [[ComboBox alloc] init];
[fieldTeams setComboData:fieldTeamsArray];          
[self.view addSubview:fieldTeams.view];  //UIPicker works but not on the Scroll View
fieldTeams.view.frame = CGRectMake(20, 135, 275, 30);      //ComboBox location 


NSMutableArray* typesArray = [[NSMutableArray alloc] init];
[typesArray addObject:@"type 1"];
[typesArray addObject:@"type 2"];
[typesArray addObject:@"type 3"];

types = [[ComboBox alloc] init];
[types setComboData:typesArray];          
[self.theScroller addSubview:types.view];   //ComboBox on Scroll View but no UIPicker
types.view.frame = CGRectMake(20, 187, 275, 30); 

I don’t know how to get the “types” Combo box to be able to access and properly load the UIPicker while in the scroller.

  • 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-30T18:20:51+00:00Added an answer on May 30, 2026 at 6:20 pm

    It was a (small) challenge but I think I’ve found a solution.

    Go in the ComboBox.h and make it conforms to UITextFieldDelegate.

    @interface ComboBox : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource, UITextFieldDelegate>
    

    Then go in the ComboBox.xib and make the File’s Owner the delegate property of the textField.

    And finally, add in the ComboBox.m the delegate method following :

    - (BOOL)textFieldShouldBeginEditing:(UITextField *)aTextField
    {
        [self showPicker:aTextField];
        return YES;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this set of labels and radio buttons that look like this: Entertainment:
I have set the Masonry demo on this page . I see that the
i have bounded DataSource to a combox box and then set this Code Combox1.ValueMember
I'm trying really hard to implement jQuery UI's combo box example. I have set
Here is the set up, (all testing code) I have a combo box on
I have this set of code which was working fine about an hour or
I currently have this set up and working fine inside a users folder. RewriteEngine
let's say I have this set of HTML-markup and CSS #CSS .inputhelp_text { background:
I have a set of data, with columns x and y. This set contains
The default in Ruby on Rails is to have this set to false (in

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.