user2428168
user2428168

Reputation: 337

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?

Upvotes: 7

Views: 2899

Answers (3)

Sergii Kostanian
Sergii Kostanian

Reputation: 51

I have recently encountered this issue on a real device, although the menu was working as expected on the watch simulator. In my case, the problem was in SF Symbol that I've used as an image.

Everything was fixed after replacing it with an image from the assets catalogue.

Upvotes: 0

nik
nik

Reputation: 1574

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

Upvotes: 4

Duncan Babbage
Duncan Babbage

Reputation: 20177

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.

Upvotes: 12

Related Questions