I have a CalendarView and I've passed the object to another UIView with a tableView in it.
In my CalendarView:
anotherView *anotherViewController = [[anotherView alloc] init];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"dd-MM-yyyy"];
NSString *dateString = [formatter stringFromDate:aDateObject];
anotherViewController.eventDate = aDateObject;
anotherViewController.eventDateTitle = dateString;
[formatter release];
[anotherViewController release];
I don't know why my object its nil in anotherView...
As el.severo says in the comments, ensure you log every step. Also there are issues with locales, you need to set the correct locale GB and us regios have different interpretations of dates. E.g. for US: