益友输入法吧 关注:1贴子:57
  • 1回复贴,共1

apple watch 文本输入控件 WKInterfaceTextField watchos6.0+

取消只看楼主收藏回复

Class
WKInerfaceTextField
An interface element that displays an editable text area.
UI界面控件连接
@IBOutlet weak var myTextField: WKInterfaceTextField!
During your interface controller’s initialization, WatchKit creates a new instance of the WKInterfaceTextField class and assigns it to your outlet. At that point, you can use the object in your outlet to manage the text field.
Receive Text Input
获取输入的文本内容
- (IBAction)textFieldAction:(NSString*) value
Receive Text Input
To receive the text entered by the user, connect the text field in the storyboard to an action method defined in your interface controller.


IP属地:天津1楼2022-11-12 22:46回复
    watch 输入控件的接口说明。


    IP属地:天津2楼2023-03-12 17:51
    回复