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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:27:43+00:00 2026-05-29T07:27:43+00:00

I have multiple view controllers in my application with uipickerview (which get visible on

  • 0

I have multiple view controllers in my application with uipickerview (which get visible on clicking a button), in all view controllers I have an array which is the same for all views. That array is also used in picker view.

Array: (34DL3611, 34GF0512, 34HH1734, 34HH1736, 34YCJ15)

The scenario is that if user is in ViewController1 and he selects some value like 34HH1736 (at index-3) from picker view and goes to ViewController2, then in that view the value 34HH1736 will be shown in a label.

Now user clicks on the button and uipickerview comes up, now the row value of picker view should be set at index-3 which is 34HH1736. But in my picker view it shows the first row selected which is index-0.

How can I achieve 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-05-29T07:27:46+00:00Added an answer on May 29, 2026 at 7:27 am

    Mr.illoGicalError is simple to do. UIPickerView have this property to set the selected index path. Please find this property below,

    [pickerViewObj selectRow:selectRow inComponent:1 animated:YES];
    

    selectRow is an int datatype. Please set selectRow = 3; When you comeback to UIPickerView it shows the third row is selected. You should store the selectedIndex path from the picker, then only you can do the same above. Please try it. Happy coding. Thanks.

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

Sidebar

Related Questions

I have an iphone application with multiple views and related controllers and xib files.
I understand that view controllers help control multiple views in an application, but I
I currently have an iPhone application with a tabbar and multiple viewcontrollers. All the
Is it possible to have multiple view of the same display object? (e.g. same-computer
I have senario in which one view and view has binding with multiple ViewModel.
I want to have one model & view that is served by multiple controllers
I have a basic ASP.Net MVC 3 application which has a number of controllers
I have a local application that runs on multiple screens which I am in
I have this iPad application with different NIBs and views. Each view has two
I have this simple MVC 3 application which simply has two controllers(Home and Edit),

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.