0

I'm writing a calendar app, now I have weekView, weekViewController, dayView, dayViewController, monthView, monthViewController.

what I want to do is that: when you select a date in any view, then switch to another view, I want the new view will show the same date, too.

I've managed to share the selected date among the controllers, but I don't know how to tell the view update their content every time they show?

4

1 回答 1

0

尝试将日期更新逻辑放在- (void)viewWillAppear:(BOOL)animated视图控制器的方法中。是参考。

于 2013-05-07T01:07:09.893 回答