Re: Setting the date of a UIDatePicker [Solved]
Re: Setting the date of a UIDatePicker [Solved]
- Subject: Re: Setting the date of a UIDatePicker [Solved]
- From: Hrishikesh Murukkathampoondi <email@hidden>
- Date: Mon, 27 Dec 2010 20:29:16 +0530
Setting it in viewDidLoad: works. I guess setting properties of any outlet should be done in viewDidLoad
My earlier init method was called but maybe the outlet was not yet hooked up then.
Hrishi
On 27-Dec-2010, at 8:16 PM, Hrishikesh Murukkathampoondi wrote:
> I am trying to set the date of a UIDatePicker in my view. I have tried using both the following in
>
> - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
>
> of my view controller but it does not work. The date is still set to what ever is specified in IB (and I am unable to set that to "current date".
>
> [dueDate setDate:[NSDate date] animated:NO];
> dueDate.date = [NSDate date];
>
> Should I be doing something more to set the date?
> Hrishi
_______________________________________________
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