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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:01:51+00:00 2026-06-05T16:01:51+00:00

First of all, apologize because I have seen some posts about this, but I

  • 0

First of all, apologize because I have seen some posts about this, but I can not understand them.
My problem is this:
I have a UIPickerView that gets the values ​​from an NSArray. Everything working perfect except when I get the value of the first row of the picker.
I have read that the method – (void) pickerView: (UIPickerView *) pickerView didSelectRow: (NSInteger) row inComponent: (NSInteger) component only runs when users scroll up or down in the picker.
So how I can get in a NSString the first value of picker?
This is my method:

 - (Void) pickerView: (UIPickerView *) pickerView didSelectRow: (NSInteger) row     inComponent: (NSInteger) component
{

 NSLog (@ "are in line% i", row);

 NSLog (@ "You've selected,% @", [array objectAtIndex: row]);

}

I have an array called “array” that he contains the data;

Thanks so much!

  • 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-05T16:01:52+00:00Added an answer on June 5, 2026 at 4:01 pm

    A lot people have faced similar problem (what if person selects default value in UIPickerView) and you might want to checkout following post in order to fix your particular problem:
    https://stackoverflow.com/a/789633/200272

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

Sidebar

Related Questions

First of all, I have to apologize for not having a better title. Feel
First of all - I apologize if this question shows ignorance or I'm not
first of all I apologize if my question is difficult to understand. I'm having
First of all I want to apologize for my bad English. I have a
First of all, apologies if this too naive (I am a beginner). I have
First of all, I would like to apologize for posting this again. I am
First of all I apologize in advance for this question, a bit off the
First of all, I apologize if this is a stupid question, I'm a dead
First off, I'd like to apologize in advance for not knowing this. I've been
First of all, I apologize for yet another interface question. I thought that this

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.