ios - 在容器 View 内的选项卡栏 Controller 内委派来自 View Controller 的信息

标签 ios iphone swift

已编辑... 我的应用程序的设置是 View Controller (包含textView和Container View) 标签栏 Controller 嵌入到容器 View 中 标签栏 Controller 中有多个 View Controller 我想知道如何将信息从这些 View Controller 之一委托(delegate)到包含 TextView 和容器 View 的主视图 Controller 。 提前致谢!

最佳答案

虽然你的问题并不完全清楚,但你可能想看看 nsnotificationcenter,而不是使用协议(protocol)/委托(delegate)。例如,创建一个观察者来监听通知帖子并使用react:

Apple Documentation for NSNotificationCenter

关于ios - 在容器 View 内的选项卡栏 Controller 内委派来自 View Controller 的信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38127672/

相关文章:

ios - 如何使用callkit获取来电号码

ios - IO : ios app development option greyed out

iphone - cocoa touch中有没有好的HTML模板引擎?

ios - 断点不适用于 Xcode 上的特定类

ios - 如何在 collectionView 自定义布局中的其他补充标题单元格上方添加标题补充单元格

ios - URLRequest(url : webURL!)返回NIL

ios - CCSprite 不会将自己添加到 NSArray

ios - 如何以编程方式在 Swift 中的图像上添加渐变层?

iphone - 如何更改ZBar阅读器的边框?

swift - 如何使用 RxSwift 手动发出事件(即创建 EventEmitter)?