簡體   English   中英

Apple CareKit無法導航到OCKCareCardViewController

[英]Apple CareKit not able to navigate to OCKCareCardViewController

我正在嘗試在Apple CareKit Framework中實現基本功能。 但是我無法導航到OCKCareCardViewController。

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

請指導我哪里做錯了

您正在做self.navigationController?.pushViewController(careCardViewController, animated: true) ,但是您的ViewController沒有導航self.navigationController?.pushViewController(careCardViewController, animated: true) 在情節提要中添加一個導航控制器,使其成為初始視圖控制器,並將ViewController設置為其rootViewController,然后您的代碼應該可以正常工作(請參見下圖)。 導航控制器到ViewController

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM