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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:16:33+00:00 2026-06-08T06:16:33+00:00

I have a view with 8 textfields. I want each textfield to be associated

  • 0

I have a view with 8 textfields. I want each textfield to be associated with a pickerview which will have different items. This pickerview should populate each text field.

When I click on the textfield it should show the pickerview and the items associated with it and when I select the item for that textfield it should dismiss the pickerview. Then again when I click on next textfield it should show the pickerview with the items for that text field and so on…

Is it possible to do so? I am new to xcode. Any help is much appreciated. Thank you.

  • 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-08T06:16:35+00:00Added an answer on June 8, 2026 at 6:16 am

    Absolutely possible. Here’s my best recommendation:

    1. Create 8 arrays–one for each picker view. Within these arrays, contain the options that the user should be able to choose from. This can be easily accomplished with NSArray.
    2. Set up your textfields in Interface Builder (i.e. in your Storyboard file), and connect an IBAction from each textfield to a function within the view controller’s code.
    3. Within each of these functions, instantiate a new UIPickerView with the contents of the array corresponding to the current picker.
    4. After the user has selected the item, set the textfield’s content to the array value contained within the index selected by the picker.
    5. Remove the picker from the current view.

    As I here you’re new to Xcode, let me know if you need any additional explanation.

    BTW, here is the class reference for UIPickerView:
    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPickerView_Class/Reference/UIPickerView.html

    UPDATE: In the function that is triggered when the textfield is tapped, allocate and instantiate the picker. Then, add it to your view. Afterwards, simply remove it from the view when the user has finalized his selection.

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

Sidebar

Related Questions

I have 8 textfields in one view. I want to populate each using a
I have multiple textfields on my view, and each time a textfield is taped
i have a table view in which each cell has a TextField where the
In my view i have Textfield.If i move that TextField it should open iphone
I want to represent clubs which have multiple members (each member can also join
I have a controller1 which contains a view which contain many subviews ( Textfields,....).
I Have an UITableView with textfields in each row. I want to access these
I have a scroll view which has some controls like textField and textArea on
I have a UITable View with a textfield that is editable right on the
I have a requirement where I have a textfield in a view. When I

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.