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 it on simulator there is no problem everything is fine and also before i add second page to the app It was ok on apple watch too
Black screen page on apple watch apps with more that one page
204 Views Asked by Developersian At
2
There are 2 best solutions below
0
Developersian
On
I guess if you remove override function didDeactivate() from both interfaceControllers may solve the problem but that's when you don't need this function and if you do try user899076 answer.
remove this:
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
Related Questions in INTERFACE
- C++ inheritance, interfaces
- Multiple service contract inter-commnication
- Passing Variables from VBA to R-Script
- Static interface equivalent C#
- What text (in English) should I use when asking the user to overwrite a document?
- Java generic class that contains an instance of implementation of generic interface
- HuggableInterface in PHP and PSR-8
- How do I define constants that must be overridden inside an interface?
- Symfony : is there a best practice about the directories' name including traits and interfaces?
- How to design structure with modifiable fields?
- Why introducing Autocloseable instead of extending the possible exceptions in Closeable
- CI accessing property on interface
- C# list of "Type" that implements specific interface
- ResultTransformer interface in java
- How can I guarantee that a class that implements an interface also extends a class?
Related Questions in SEGUE
- How to segue to View Controller from skview
- iOS - Logout functionality
- After selecting a TableView Cell, pass the data back to the previous View Controller in Swift
- Swift ios viewDidLoad or viewDidAppear
- swift: select dynamic table cell and either push or pop view controller depending on stack
- terminating with uncaught exception of type NSException in Swift
- Segue animation doesn't align screen correctly
- Swift segue performed multiple times
- One UIAlertController function with multiple actions - is this possible?
- performSegueWithIdentifier method is very slow for modal segue
- Calling prepareforSegue from a UIButton?
- Segue must be modal with page navigation
- iOS Segue - Left to Right -
- Custom cell segue with data pass error - Swift
- After programmatically segueing, The ViewController has not been dismissed
Related Questions in WATCHKIT
- Apple Watch: WKInterfaceLabel doesn't update on device, but fine on simulator
- Display both alertTitle and AlertBody on a custom WatchKit notification
- Check if image with name is set (WatchKit)
- AppleWatch - "attempt to insert nil" when calling WKInterfaceDevice addCachedImage
- Why is willActivate called twice when watch app enters foreground?
- Detect WKInterfaceButton pressed continuously?
- How can I setup the distribution build to get watchkit App working?
- Play sound with WatchKit 2
- How to record audio and play it with WatchOS2?
- change initial interface controller in watchKit
- Clear labels, Images in WatchKit after didDeactivate (Glance and InterfaceController)
- How do I call the CoreData proxy framework from WatchKit Extension?
- Segue must be modal with page navigation
- How to handle this error when requesting data from watchkit
- WKInterfaceTable & setNumberOfRows get crash "unexpectedly found nil while unwrapping an Optional value"
Related Questions in VIEWCONTROLLER
- How can I pop to any view controller as I wish?
- prepareForSegue (ViewController)
- Swift Soundboard App
- NavigationBar not loading when ViewController is programatically presented
- How can you make an array of segues in swift?
- Crash on pushViewController
- Can't see elements from storyboard inside viewcontrollers
- iOS - clearing view controller stack from modal presentations
- iOS Segue opening two view controllers (assuming two table cells clicked)
- Simpler alternative for accessing master object from nested listview on XAF
- How to take reference of viewcontroller in NSObject class in swift?
- Top margin UITableViewController after popViewController action
- Can't pass a variable to second viewcontroller
- Keyboard animation in iOS
- Keeping a view controller in it's state after you leave and come back to it- Swift
Related Questions in WKINTERFACECONTROLLER
- Why is willActivate called twice when watch app enters foreground?
- WKInterfaceTable & setNumberOfRows get crash "unexpectedly found nil while unwrapping an Optional value"
- WatchOS set title action
- WatchKit: modal controller with it's own hierarchical navigation
- How to know when user has closed modally presented controller by tapping on title?
- Splash screen for watchkit in swift
- Call a public method of a WKInterfaceController from ExtensionDelegate class- WatchKit
- Customise title in the WK Status Bar
- Can an Apple Watch app have multiple glances?
- How can I disable the user interaction for the Cancel button of my watchOS interface controller?
- How can I share variables between multiple interface controllers in a paged-based interface on watchOS
- Black screen page on apple watch apps with more that one page
- How to fix missing interface controller inside Page Controller in Apple Watch?
- How come Xcode Stops letting me hook up IBOutlets after two Interface Controllers?
- Get visibile controller iWatch
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I had the same issue and it was due to calling
crownSequencer.focus()without a correspondingcrownSequencer.resignFocus()call. In my case I was callingfocus()indidAppear()and once I added aresignFocus()call towillDisappear()the problem went away.