【发布时间】:2014-11-07 12:25:59
【问题描述】:
- 应用在 ViewContoller 上启动
- 我推 TutoViewContoller
- 在某些操作中,我弹出 TutoViewContoller
我想在弹出 TutoViewController 之后调用 ViewContoller 的方法。我该怎么做?
【问题讨论】:
-
在viewwillappear中调用那个方法:viewcontroller的方法
-
我不希望每次视图出现时都调用它。我希望在弹出 TutoViewController 后调用它。
-
好的,然后默认保持一个 bool 偏好设置为“否”,当它进入 TutoViewController 时,将其设置为“是”并检查该偏好是否会出现在 viewcontroller 中
-
有两个选项。首先是使用 NSNotificationCenter,其次是使用委托。代表看这个:stackoverflow.com/questions/18566304/…
标签: ios ios7 viewcontroller navigationcontroller