• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how do you set the value of a UIPickerView programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do you set the value of a UIPickerView programatically?


  • Subject: Re: how do you set the value of a UIPickerView programatically?
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 11 Jan 2010 17:15:47 -0700

What does NSLog(@"%@", picker); print out?

Dave

On Jan 11, 2010, at 5:14 PM, Paul Archibald wrote:

> I have a couple of pickers in my app, and when they are displayed I want them to show their current values. I have tried:
>
> -(IBAction) setThePicker:(id) sender {
> 	[picker selectRow:3 inComponent:0 animated:YES];
> }
>
> (hooked to a button, as a test) as well as just calling
>
> 	[picker selectRow:indexOfCurrentValue inComponent:0 animated:YES];
>
> from within my viewDidLoad method, but the picker does not change. I am pretty sure my XIB is set up right and connected to the code.
>
> I have found some sample code that seems like it should work, but it doesn't. Anyone know how to make this work?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >how do you set the value of a UIPickerView programatically? (From: Paul Archibald <email@hidden>)

  • Prev by Date: how do you set the value of a UIPickerView programatically?
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: how do you set the value of a UIPickerView programatically?
  • Next by thread: Re: how do you set the value of a UIPickerView programatically?
  • Index(es):
    • Date
    • Thread