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
1
vote
1 answer
how to show second screen of the array when presentController(withNames:contexts:) is executed
presentController(withNames:["ScreenOne", "ScreenTwo", "ScreenThree"], contexts:nil)
when the above line is executed, the ScreenOne screen shows up as below:
first page in the array is highlighted
how would I go about getting the second page to…

as diu
- 1,010
- 15
- 31
1
vote
1 answer
How to pass data back to an interface controller in Watchkit
I know that this question has been asked a lot but it seems that nobody has given a proper answer.
I have an interface controller that has a table. Now when the user selects a a row I push the information to a new interface controller…

michaels
- 23
- 1
- 8
1
vote
1 answer
Watch OS Swift Table load data in order
Watch OS 3/Xcode 8 allows for stand alone watch apps. Can someone provide the best Swift array/method for loading data to a table in storbyboard in order from Interface Controller, updating after each display.
My code right now only selects the…

KnightRider
- 11
- 1
1
vote
1 answer
Update InterfaceController with different data
Hi I am new to WatchKit development. I want to know that can I update a single interface controller with multiple data for button clicks

ReB
- 107
- 10
1
vote
3 answers
Prevent dismissing modal WKInterfaceController
Is there a way to prevent the user from dismissing a modal controller?
I think it is pretty common to want to "block" the main Watch App interface while asking the user to open the iPhone counterpart or to perform some action there.
My current…

Rivera
- 10,792
- 3
- 58
- 102
1
vote
1 answer
WKInterfaceController top right button
On WKInterfaceController, is there a way to add a button (such as 'Done') at the top right corner of the watch screen instead of the time?

dowi
- 1,005
- 15
- 30
1
vote
0 answers
Watch app crashing with variable name "properties"
I've been debugging my watch app for a few hours now because every time I try to segue to a new interface controller, my app crashes after the return statement in contextForSegueWithIdentifier. I was getting an error
saying [__NSArrayM…

Tessa
- 176
- 13
1
vote
1 answer
Customise title in the WK Status Bar
I'm trying to customise title in the WK Status Bar of my first Controller.
The correct way should be this:
public func setTitle(title: String?) // title of controller. displayed when controller active
so
WKInterfaceController.setTitle("my…

Matte.Car
- 2,007
- 4
- 23
- 41
1
vote
1 answer
How can update the WKInterfaceLabel in the not shown controllers use page based segue
in my application for watchos 2 when I update data are updated only in the controller which shown. If I update label in willActivate() - text changes with a delay. How can update the WKInterfaceLabel in the not shown controllers use page based? The…

Demetri Kulakoff
- 192
- 8
1
vote
1 answer
Interface Controller Title not changing during run time
I'm trying to change the title of my Interface Controller programmatically at one point during the app's lifecycle.
However, this doesn't seem to be working when the app is running..? Is that intentional, a bug, or am I doing something…

Aleksander
- 2,735
- 5
- 34
- 57
0
votes
0 answers
watchOS 10 Beta - WKInterfaceController title alignment
In our existing watchOS application developed in Objective-C (not SwiftUI), we used to set the title property (WKInterfaceController class) of each screen of the application (in Interface Builder or in the Objective-C code).
The title was displayed…

geolives
- 159
- 4
0
votes
0 answers
[WKInterfaceController pushControllerWithName:context:]: called from queue other than main. This is not supported and may fail in the future(iOS)
Error - [WKInterfaceController pushControllerWithName:context:]: called from queue other than main. This is not supported and may fail in the future.
In my iOS with apple watch, this error is coming when I am trying to push…

Deepak Sharma
- 23
- 8
0
votes
1 answer
WKInterfaceController, how to programmatically set "Spacing" & "Insets"
I looked at Apples' docs for their WKInterfaceController:
Insets: The amount of space (in points) to insert between the edges of the interface controller and its content. Selecting Custom lets you specify different values for the top, bottom, left,…

BlackStar
- 21
- 1
0
votes
1 answer
Move from one interface controller to another on
I am trying to have a countdown timer in a interface controller and when the time is 0 I would like it to perform a segue to the next interface controller.
Is there any way to do this?
if secondsLeft == 0 {
pushController(withName:…

user234
- 59
- 1
- 1
- 5
0
votes
2 answers
Black screen page on apple watch apps with more that one page
Hi I have created a Watch app which has two pages but when I run it on apple watch and do switch between pages after few seconds one page(sometimes page1 and sometimes page2)goes black and It doesn’t show my buttons, labels nothing. But when I run…

Developersian
- 151
- 2
- 7