I have two views, first one is with calendar and the second one is a UIView with a tableView
;
I\'m trying to display the selected date from the firstView. Managed
Declare an @property (nonatomic, retain) NSDate *displayDate;
(or strong
instead of retain
when using ARC) on your TableViewController (dont forget to synthesize). The first view can then set the property of the TableViewController, for example:
MyTableViewController *mtvc = [[MyTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
mtvc.displayDate = selectedDate;
...
You can then access the date from within your TableViewController using self.displayDate
, for example in your titleForHeaderInSection
.