【发布时间】:2017-01-03 07:24:01
【问题描述】:
如何在 Research Kit 中显示 TaskViewController 的标题?我一直在尝试以下,但它似乎没有出现,尽管可以通过这种方式设置其他属性。
let taskViewController = ORKTaskViewController(task: ConsentTask, taskRunUUID: nil)
taskViewController.navigationBar.topItem!.title = "TITLE"
taskViewController.restorationIdentifier = "1"
taskViewController.delegate = self
presentViewController(taskViewController, animated: true, completion: nil)
我也试过 taskViewController.title = "TITLE"。
【问题讨论】:
标签: ios swift researchkit