Re: UISegmentedControl -selectSegmentAtIndex:?
Re: UISegmentedControl -selectSegmentAtIndex:?
- Subject: Re: UISegmentedControl -selectSegmentAtIndex:?
- From: Luke the Hiesterman <email@hidden>
- Date: Mon, 21 Mar 2011 18:53:58 -0700
@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 (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
_______________________________________________
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