【发布时间】:2016-01-27 10:24:28
【问题描述】:
我正在尝试在我的第一个控制器的 WK 状态栏中自定义标题。
正确的做法应该是这样的:
public func setTitle(title: String?) // title of controller. displayed when controller active
所以
WKInterfaceController.setTitle("my Title")
但使用此代码,xCode 会显示 Cannot convert value of type 'String' to expected argument type 'WKInterfaceController'。怎么了?
【问题讨论】:
标签: watchkit wkinterfacecontroller