• 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
Setting the date of a UIDatePicker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the date of a UIDatePicker


  • Subject: Setting the date of a UIDatePicker
  • From: Hrishikesh Murukkathampoondi <email@hidden>
  • Date: Mon, 27 Dec 2010 20:16:17 +0530

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

  • Follow-Ups:
    • Re: Setting the date of a UIDatePicker [Solved]
      • From: Hrishikesh Murukkathampoondi <email@hidden>
  • Prev by Date: Re: Strange error solved by turning off "Non-contiguous Layout"
  • Next by Date: Re: Setting the date of a UIDatePicker [Solved]
  • Previous by thread: Re: UITableView Custom Section Headers
  • Next by thread: Re: Setting the date of a UIDatePicker [Solved]
  • Index(es):
    • Date
    • Thread