I am using two UIDatepicker in my project. When I create second DatePicker, then I face problem in setting date on the second.
This is archive of my project with two DatePickers.
Where is problem?
I am using two UIDatepicker in my project. When I create second DatePicker, then I face problem in setting date on the second.
This is archive of my project with two DatePickers.
Where is problem?
You don't have the outlet connected in the ContactCardView.xib file. So effectively your datePickerBD is nil.
I found interesting bug in an UIDatePicker in line with setTimeZone in FirstViewController.m:
- (void)viewDidLoad
{
[super viewDidLoad];
datePicker.locale = [NSLocale currentLocale];
[datePicker setDatePickerMode: UIDatePickerModeDate];
[datePicker setTimeZone: [NSTimeZone timeZoneWithAbbreviation:@"GMT"]]; // This line make strange effect on DatePicker with create second instance one
}
If delete last operator, bug disappear!