I wonder how to trigger events programmatically in apple watchKit. For example how to fake a touch of a button in watchKit or how to fake a long touch of the whole screen? (in swift)
There is no way to get the selection action from a WKInterfaceButton
. You can however, just call the method directly on your InterfaceController.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.