WKInterfaceController 右上按钮
WKInterfaceController top right button
在WKInterfaceController
上,有没有办法在手表屏幕的右上角添加一个按钮(例如'Done')而不是时间?
没有。您可以为 a presented modal controller 指定一个 'title',但它将始终出现在左上角。
If the modal interface controller does not have a title, its title is set to the string Cancel by default. You can set the value of this string in your storyboard or change it at runtime using the setTitle: method. When the user taps the title string, WatchKit automatically dismisses the modal interface without taking any further actions.
有趣的是,Apple 确实 在模态文本听写期间恰好在右侧显示完成。您可以 submit an enhancement request 要求用 'title' 代替时间。
在WKInterfaceController
上,有没有办法在手表屏幕的右上角添加一个按钮(例如'Done')而不是时间?
没有。您可以为 a presented modal controller 指定一个 'title',但它将始终出现在左上角。
If the modal interface controller does not have a title, its title is set to the string Cancel by default. You can set the value of this string in your storyboard or change it at runtime using the setTitle: method. When the user taps the title string, WatchKit automatically dismisses the modal interface without taking any further actions.
有趣的是,Apple 确实 在模态文本听写期间恰好在右侧显示完成。您可以 submit an enhancement request 要求用 'title' 代替时间。