iOS - 访问模态的父属性

标签 ios modalviewcontroller

我可能过于复杂了,但是有没有办法访问模态父项的属性?

因此,我调用“presentModalViewController”,然后我可以访问刚刚从模态调用它的 View Controller 上的一些属性。

谢谢, 阿什莉

最佳答案

如果你使用的是 iOS 5,你可以调用 self.presentingViewController 来访问父 View Controller

这里是 apple reference

关于iOS - 访问模态的父属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10372658/

相关文章:

ios - 有效地将 Swift 数组复制到 iOS Metal 的内存缓冲区

c++ - 使用 cocoapods 在 iOS 上集成 GoogleCloudMessaging

ios - 是否可以在未发布的 ios 应用程序上测试 ios 智能应用程序横幅?

ios - 如何在不隐藏 TabBar 的情况下呈现具有自下而上动画的 UIViewController

iPhone - 显示 UIImagePickerController

ios - 什么对我的 viewController 有很强的引用意义?

ios - 更新永远快速重复的 SKAction 的参数

ios - 在窗口中使用我的尺寸打开模态 ViewController

iOS - 当 View Controller 以模态方式呈现时,如何将 View 保持在前面?

iphone - 我可以将导航 Controller 添加到 ModalViewController 吗?