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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:07:22+00:00 2026-06-09T10:07:22+00:00

I have a UIPickerView which will be loaded with two different data sets based

  • 0

I have a UIPickerView which will be loaded with two different data sets based on which button the user presses. One array has a count of 10 and another 6. Is it possible to fill in the same picker view with these two datas? I end up in an error when I load up with array with count of 6 when I have set the numberOfRow method to return 10. Any ways to overcome this?

  • 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-09T10:07:24+00:00Added an answer on June 9, 2026 at 10:07 am

    Within the UIpickerview delegates have some sort of if statement to reflect the changes

    if(button1 pressed){
    return array
    }
    else{ return array 2}
    

    Do the same for number of rows and datasource callbacks

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

Sidebar

Related Questions

I have a UIPickerView which works correctly, now I want to add a button
I have UIPickerView with two columns and in one column I want to display
I have a UIPickerView with two components. It works fine when the user scrolls
I have a UIPickerView in my app in which the 'tick' sound when moving
I have a uipickerview, which has a dictionary as a datasource. I want to
I have one mainViewController and I have a UIPickerView. Now all is set up
I have 3 row data in UIPickerView that is timeHour, timeMinute, timeSecond. How to
I have a button in a table view cell which, when pressed brings up
I have 3 pickers on my view, one of which contains only images. So,
I have set up several Views each containing a UIPickerView each of which contains

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.