1
我试图在我的第一个控制器的WK状态栏中自定义标题。在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'
。怎么了?