Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatchKit Menu Items Not Displaying

I'm in Xcode 6.2 Beta 3 (Build 6C101), I've added a menu and two menu items to my Interface Controller, and created IBActions for both. I've given them titles and images, but when I run the app nothing displays.

I've read

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

and can't see anything about need to show menu items programatically - what am I missing?

like image 325
user2428168 Avatar asked Jan 08 '15 14:01

user2428168


2 Answers

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

The most likely issue is caching of the previous Watch app storyboard. Do a clean build and try again.

Finally, as you likely know WatchKit menus only display on a "force press". They cannot be used for the main interface of the Watch app. In the Simulator, a click and hold with the mouse will simulate a force press, and the animation will make it clear when you have done one, even in contexts where it doesn't do anything.

like image 91
Duncan Babbage Avatar answered Nov 17 '22 05:11

Duncan Babbage


This was solution for me- Go to Hardware->Touch Pressure->Deep Press then try tap on watch simulator.

like image 29
nik Avatar answered Nov 17 '22 05:11

nik