Questions tagged [wkinterfacecontroller]

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.

67 questions
0
votes
1 answer

How to fix missing interface controller inside Page Controller in Apple Watch?

What I found is ? Try to scroll horizontally between the interface controllers inside a root page controller. Randomly after a while (30-1 min). You will find that one of the interface controllers gets missing. Blank view is shown, UI disappears…
0
votes
1 answer

How to display an alert in page based interface on WatchOS?

My watch app has a page based interface where I don’t really know what InterfaceController is currently on the screen (it could be 1 of 4), however I need to pop an alert no matter what screen the app is on. How can I present an alert given I don't…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

WATCH OS: How to seek WKInterfaceInlineMovie

Successfully played a video using 'WKInterfaceInlineMovie'. However, I need an option to start the video from the middle. Is this possible? Also, there is no delegate method to know when the video ends.
iqra
  • 1,061
  • 1
  • 11
  • 18
0
votes
1 answer

How to dismiss WKInterfaceController from another controller?

I am creating my first WatchOS app as a companion to an iOS app. The Watch App needs to be able to display a bingo ball whose number is sent from the phone. Since I can't overlay images with WatchOS, I've created 6 WKInterfaceControllers. One is…
Jim
  • 55
  • 1
  • 7
0
votes
1 answer

Setting the initial view controller in a page based navigation to something other than the first view

In watchOS, I'm implementing a Page-based navigation. The page based navigation contains three interface controllers; however, the first interface controller is the one that shows up first. In my scenario, however, I want the second interface…
Harish
  • 1,374
  • 17
  • 39
0
votes
1 answer

How to segue to the middle InterfaceController in Page Based Navigation on Apple Watch?

I am trying to build a similar flow to the Apple Watch Workout App where after you begin a workout you are presented with an InterfaceController showing the duration and you scan swipe left to see an additional InterfaceController or swipe right to…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

Programmatically setting WKPickerItem won't go above a certain value?

Can't figure this out, via the code below I let the user set a value on a WKPickerItem, store it in UserDefaults, then load it up the next time the InterfaceController is loaded and attempt to set the PickerItem with the stored value. The problem…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

Get visibile controller iWatch

I have this situation: I have an iWatch app that has a root WKInterfaceController and when it fires a particular event I present another WKInterfaceController in this way: WKInterfaceController * rootC = [WKExtension…
0
votes
1 answer

context showing nil when trying to send data across Interface Controllers in WatchKit

I have two Interface Controllers with FirstInterfaceController being the one where I have a context object I want to send to SecondInterfaceController. I am wondering why context is showing up as nil when I expect it to be 0 when I tap the…
ML.
  • 589
  • 1
  • 9
  • 33
0
votes
1 answer

Passing data between two Interface Controllers

I want to pass a string between two Interface Controllers. On InterfaceController1 I want to create a variable like: var level: String = ("easy") And then be able to access that variable on InterfaceController2. There is currently just one answer…
Dylan Murphy
  • 167
  • 1
  • 13
0
votes
1 answer

WatchOS 3 sharing information and actions between interfaces

I have a table on my main watch interface. Upon user selection, a 2nd interface will show and display more details about the user picked item. I'm thinking about adding a button to this 2nd interface, so when user clicked on this button, the watch…
PaulLian
  • 197
  • 1
  • 10
0
votes
1 answer

How to open a specific view controller from a custom notification action in WatchOS 3

I'm developing a WatchOS3 application in which the user receives local notifications with custom actions. The user has 2 custom actions that he can call on the notification, option 1 and option 2. After the user taps on either of the options, the…
0
votes
1 answer

watchOS app resets to root view controller after display sleep

I'm implementing a simple hierarchical interface for a watchOS app, using pushController(withName: String, context: Any?) to add views onto the stack. When trying to test on a watchOS 3 device, my app will reset itself back to the root view…
endemic
  • 1,369
  • 1
  • 10
  • 20
0
votes
1 answer

How to set Apple Watch title for VoiceOver AccessibilityLabel

Is there any way to change the AccessibilityLabel of a WKInterfaceController title? Or to turn off just the title VoiceOver? I have shortened the title to X|Y to show the user what they are viewing but this is not very user friendly for someone…
0
votes
0 answers

WatchKit : applicationWillResignActive called after x seconds and dictation stop

My application have to start automatically dictation (with presentTextInputControllerWithSuggestions with an empty array of suggestions). For this, I schedule a dictation with a delay after X seconds on a certain screen. But, I have a problem when…