Thanks, Luke. Somehow I was thinking that was a read-only property ("selected" = past tense). My bad.
________________________________ From: Luke the Hiesterman <luket...@apple.com> To: Jon Sigman <rf_...@yahoo.com> Cc: cocoa-dev@lists.apple.com Sent: Mon, March 21, 2011 6:53:58 PM Subject: Re: UISegmentedControl -selectSegmentAtIndex:? @property(nonatomic) NSInteger selectedSegmentIndex; so, segmentedControl.selectedSegmentIndex = theIndexYouWant; Luke On Mar 21, 2011, at 6:49 PM, Jon Sigman wrote: > iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the > segments in -viewDidLoad based on the last user setting stored in defaults. >But, > > I can't find a -selectSegmentAtIndex: method or a reasonable facsimile. How > can > > I go about doing this? > > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > This email sent to luket...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com