wkinterfacecontroller is the main interface element use when building watchos apps, similar to the ViewController.swift file created in XCode when you create a new ios or macos project.
Questions tagged [wkinterfacecontroller]
67 questions
0
votes
1 answer
How to display Apple Watch unable to connect screens?
I am developing an Apple Watch app and trying to handle the error cases of not being able to connect to the iPhone:
And needing to unlock the iPhone to access it:
I have seen several apps that have these identical screens, so they must be a part…

Mark Leonard
- 2,056
- 19
- 28
0
votes
1 answer
Call a public method of a WKInterfaceController from ExtensionDelegate class- WatchKit
I am calling the
`[[WCSession defaultSession] updateApplicationContext:message error:error]`
method which is triggered in my
`-(void)session:(WCSession *)session didReceiveApplicationContext:(NSDictionary…

JMS
- 271
- 4
- 15
0
votes
1 answer
Interface not drawn if becomeCurrentPage is called by a late page
Just like Sarah said in this link:
https://forums.developer.apple.com/thread/26922
I have the same problem by using the method "becomeCurrentPage" when I called "presentControllerWithNames()" and the pages is more than 5.
I have a WatchKit app where…

Ding Qiu
- 64
- 3
0
votes
1 answer
WKInterfaceMap is not shown on WatchOS 2 project
I am trying to display a map in a Watch app by means of this class:
import WatchKit
class WKMapController: WKInterfaceController {
@IBOutlet var map: WKInterfaceMap!
let mapSpan=0.0001
override func awakeWithContext(context:…

Fabrizio Bartolomucci
- 4,948
- 8
- 43
- 75
0
votes
2 answers
WatchOS2 UI updates sent to page based WKInterfaceController when controller is not current page runs but does not update any UIs
I have an app with 3 pages, when I receive information from my WatchConnectivity delegate, which is my Extension Delegate, I delegate it to the InterfacController to update the UI.
However, the code that handles the update runs, including the UI…

Jacky Wang
- 618
- 7
- 27
0
votes
1 answer
objective c WatchKit WKInterfaceController openParentApplication call blocks indefinitely
I'm using the following code to "simply" determine the application state of the parent application from my watch app:
WatchKit Extension:
[WKInterfaceController openParentApplication:[NSDictionary dictionary] reply:^(NSDictionary *replyInfo, NSError…

user3335999
- 392
- 1
- 2
- 17
0
votes
1 answer
WKInterfaceMenu sets model InterfaceController as root InterfaceController
When bringing up a menu from a modal WKInterfaceController presented from the rootController via presentControllerWithName:context:, the modal controller becomes the root controller:
<— Modal (see Cancel)
<— Menu
<— Root? (no Cancel)
Is this a…

Patrick Perini
- 22,555
- 12
- 59
- 88