WatchKit Menu Items Not Displayed

I'm in Xcode 6.2 Beta 3 (Build 6C101), I added a menu and two menu items to my interface controller and created IBActions for both. I gave them names and images, but when I launch the application, nothing is displayed.

I read

https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Menus.html

and sees nothing about the need to programmatically display menu items - what am I missing?

+5
source share
2 answers

You do not need to present the menu programmatically. The only thing you need to do is connect each button to IBActions in the Watch app extension.

The most likely problem is the caching of the previous Watch app storyboard. Make a clean assembly and try again.

Finally, since you probably know that the WatchKit menu only appears when you press force press. They cannot be used for the main interface of the Watch application. In the simulator, clicking and holding the mouse mimics a force click, and the animation will be clear when you have done this, even in those contexts where it does nothing.

+10
source

It was a solution for me - go to Hardware-> Touch Pressure-> Deep Press, then try clicking on the clock simulator.

+3
source

Source: https://habr.com/ru/post/1210672/


All Articles