• 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? [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: how do you set the value of a UIPickerView programatically? [solved]
  • From: Paul Archibald <email@hidden>
  • Date: Tue, 12 Jan 2010 14:51:05 -0800

Ahh, now I see it, you are correct. I had been alloc/init'ing some other UI elements that were not created in IB, and this got that treatment, too, so the picker was double-allocated. I need to more careful copy/pasting my own code.


On Jan 12, 2010, at 12:53 PM, David Duncan wrote:

On Jan 12, 2010, at 12:26 PM, Paul Archibald wrote:

Anyhow, I figured out what was wrong. Seems you need to call [self.view addSubview:picker] to "hook up" the picker to the view controller. I am doing that in my viewDidLoad method.


If the picker is already a subview of the view controller's view in the XIB, then this should not be necessary.
--
David Duncan
Apple DTS Animation and Printing




_______________________________________________

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? [solved] (From: Paul Archibald <email@hidden>)
 >Re: how do you set the value of a UIPickerView programatically? [solved] (From: David Duncan <email@hidden>)

  • Prev by Date: Re: NSExtraMIData?
  • Next by Date: Re: (void *)contextInfo
  • Previous by thread: Re: how do you set the value of a UIPickerView programatically? [solved]
  • Next by thread: Search multiple / all properties in single NSPredicate statement
  • Index(es):
    • Date
    • Thread