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
205 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
- How do I apply the interface concept with the base-class in design?
- Save Interface in DB golang
- Collections.max with custom Comparator on list
- Linux Networking - Routing packets from one network interface to another
- How to design the file operation interface involving status and transactions?
- Angular component's interface ( @Output / @Input ) how do you expose methods? Or certain type of events?
- Own Pattern / framework for interfacing with components in C
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Use Interface Type in Map or Struct Definition, but Implement with Concrete utype
- How does variance work when implementing interfaces/type aliases in TypeScript?
- Fatal error: Uncaught TypeError when returning class instead of interface
- Golang Use of array of structs that implement MyInterface as []MyInterface not allowed
- Calling c++ from fortran
- Interface and model in TypeScript (angular 17)
- Interface called Delegate call failed
Related Questions in SEGUE
- performSegue() works to show (push) either of two UIViewControllers, but one has nil navigationController
- Delegate on Delegate
- How to perform segue from tableview cells to different view controllers
- Why is windowDidLoad() is called twice in a segue?
- How do I get it so my previous view doesn't show up behind my new view in the Xcode Simulator
- Segue and attempt to present whose view is not in the window hierarchy
- ViewController showing extra left item out of nowhere if I do a segue from another VC
- How do I segue from one SwiftUI view to another, when the object i want to be clicked is a custom element in a carousel?
- Cannot assign to property: 'detailDic' is a 'let' constant
- Segue not getting called programmatically only if button pressed
- Programmatically opening a window in Swift 3 MacOS
- Xcode has no segue with identifier
- Prepare and Perform segue throws different values
- Prepare segue throws nil
- Swift: How to save data to var in Model form segue?
Related Questions in WATCHKIT
- How can I create an animation like WhatsApp archive button spawn animation with SwiftUI on watchOS?
- WatchOS companion app Builds successfully but gives WCSessionDelegate error when Archiving
- Can an Apple Watch Companion App programmatically change Apple Watch background/watch face?
- How to migrate WidgetKit extensions from dual-target to single-target watchOS app?
- how to programatically trigger notification on the watch from my iOS app
- Is it possible to detect that Watch is paired with iPhone or not without having Watch target
- Flutter iOS Companion App With Watch App Error : No such module 'WatchKit' While Archiving
- Could not launch Failed to get the task for process -1 when running my WatchApp Target
- How to run a function when tapping a Node in a Scene on Apple Watch?
- Using CMHeadphoneMotionManager in independent WatchOS app to Access AirPods Pro Accelerometer Data
- How to get WCSession to continue streaming data after WatchKit app falls asleep?
- Apple Watch Series 3 (WatchOS 8.8) cannot connect/pair to Xcode v15.0.1
- In WatchKit can't access UserDefaults
- Not able to add .watchface file in xcode project
- Can is share Keychain items ios app and watch app
Related Questions in VIEWCONTROLLER
- UITableView not showing class array data
- Why will updateScore function in viewcontroller not call from gamescene
- Swift Generic Types and Inheritance
- View controller property layout top of each other
- How to merge two view content using factory design pattern in swift
- Rendering two view controller content into single view
- Adding two view controller content into single view
- How to open the desktop version of a link but using SafariServices
- Swift webview device token
- When creating a viewController in Facebook ShareDialog, there is an error "Type of expression is ambiguous without a type annotation"
- UIAlertController as child view controller not responding to tap
- Swift - Dismissing UIAlertController Not Working When 'No' Button is Pressed
- StoryBoard completly disappeared, i.e the VIEWCONTROLLER is totally blacked
- Change Notification Content Extension Interface Size Xamarin iOS
- How to show same top design in all viewcontroller with UIPageViewController in swift
Related Questions in WKINTERFACECONTROLLER
- WKInterfaceController title alignment change on watchOS 10
- watchOS 10 Beta - WKInterfaceController title alignment
- WatchOS set title action
- [WKInterfaceController pushControllerWithName:context:]: called from queue other than main. This is not supported and may fail in the future(iOS)
- WKInterfaceController, how to programmatically set "Spacing" & "Insets"
- Move from one interface controller to another on
- Black screen page on apple watch apps with more that one page
- Breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy when an alert should be shown on WKInterfaceController
- How to fix missing interface controller inside Page Controller in Apple Watch?
- How to get Apple Watch display radius?
- How to display an alert in page based interface on WatchOS?
- WATCH OS: How to seek WKInterfaceInlineMovie
- How to inject viewModel class into WKInterfaceController?
- WKInterfaceController's becomeCurrentPage not working as expected
- How to dismiss WKInterfaceController from another controller?
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 # Hahtags
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.