【问题标题】:I want to pass data between two UIViewControllers in my universal app [duplicate]我想在我的通用应用程序中的两个 UIViewControllers 之间传递数据 [重复]
【发布时间】:2012-06-09 18:03:26
【问题描述】:

可能重复:
UISplitViewController Master / Detail communication

对于 iPad,我使用 UISplitViewController,对于手机,我使用导航控制器,我无法找到将对象从主视图控制器传递到详细视图控制器的常用方法。

【问题讨论】:

标签: iphone ios ipad


【解决方案1】:

您正在寻找所谓的Delegation。在此处查看我之前的 SO 答案和快速示例,还包括指向 Apple 的代表和数据源文档的链接。 Objective C View to Controller Communication

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-21
    • 2016-08-09
    • 1970-01-01
    相关资源
    最近更新 更多