Я использую Xcode 4.
У меня есть компонент DatePicker.
Он принимает дату по умолчанию, установленную в дате IB, чтобы выделить и выбрать дату ...
Я хочу установить текущую дату в окне выбора даты ...
Не работает Метод setDate ...
- (void)viewDidLoad
{
[super viewDidLoad];
[ddlDatePicker setDate:[NSDate date]];
NSLog(@"-%@-",[NSDate date]);
//NSLog is showing me the current date..Today's Date...
//But ddlDatePicker is setted to the date on the day on which I created the date
//Picker...Or You can say date field in the DatePicker's IB Properties..
![enter image description here][1]
}
