模态视图 Controller 被关闭后,是否调用任何委托(delegate)方法将父 View Controller 带到前面?
最佳答案
我最终使用了 Apple 的 iOS View Controller 编程指南中的委托(delegate):
When it comes time to dismiss a modal view controller, the preferred approach is to let the parent view controller do the dismissing. In other words, the same view controller that presented the modal view controller should also take responsibility for dismissing it whenever possible. Although there are several techniques for notifying a parent view controller that it should dismiss its modally presented child, the preferred technique is delegation.
在添加适合我想要做的菜谱时,CoreDataRecepies 示例代码中有一个很好的示例。
关于iphone - 父 View Controller 中是否有一个委托(delegate)在模态视图被关闭后被调用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6550583/