苹果手表应用上的黑屏页面多于一页 [英] Black screen page on apple watch apps with more that one page
问题描述
我创建了一个Watch应用程序,该应用程序有两个页面,但是当我在Apple Watch上运行该应用程序并在几秒钟后在页面之间切换时,一页(有时是page1,有时是page2)变黑了,并且它没有显示我的按钮,没有标记任何内容.但是,当我在模拟器上运行它时,一切都很好,而且在我向应用程序添加第二页之前也没问题.在Apple Watch上也可以
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
推荐答案
我想如果您从两个interfaceController中都删除重写函数didDeactivate()可能会解决此问题,但是那是当您不需要此函数并且如果您尝试使用user899076答案.
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.
删除此内容:
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
这篇关于苹果手表应用上的黑屏页面多于一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!