【问题标题】:Apple CareKit not able to navigate to OCKCareCardViewControllerApple CareKit 无法导航到 OCKCareCardViewController
【发布时间】:2017-06-14 09:05:22
【问题描述】:

我正在尝试在 Apple CareKit 框架中实现基本功能。但我无法导航到 OCKCareCardViewController。

请在 Github 上找到我的代码 https://github.com/sandesh271991/CareKitDemo

请指导我哪里做错了

【问题讨论】:

    标签: ios swift3 carekit


    【解决方案1】:

    您正在做self.navigationController?.pushViewController(careCardViewController, animated: true),但您的 ViewController 没有导航控制器。 在你的故事板中添加一个导航控制器,使其成为初始视图控制器,并将你的 ViewController 作为它的 rootViewController,你的代码应该可以正常工作(见附图)。Navigation Controller to ViewController

    【讨论】:

      猜你喜欢
      • 2016-10-22
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-14
      • 2020-05-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多