iPhone - 应用程序在真实设备上加载时显示空白屏幕(有时)
我目前有一个 iPhone 应用程序,它在模拟器上运行良好,并且当它连接到 Mac 并附加到 Xcode 调试器时,在真实设备上也运行良好。
我可以关闭该应用程序并再次打开它,没有问题。
然而,当我从 Mac USB 中移除设备并尝试正常使用我的应用程序时,它有时会尝试加载并卡在空白黑屏上。其他时候它会正常加载,如果我按下主页按钮并再次启动应用程序,它通常会正常启动。
该设备已设置为调试,我只需在 Xcode 上运行应用程序即可将其放置在设备上,所以这是我的问题吗?我是否需要更改应用程序设置才能使其在没有此问题的设备上运行到发布版本或类似的版本?
编辑:
我有一些附加信息似乎每次都会重现它。
如果我按下主页按钮将我的应用程序推到后台,然后我将设备留在那里大约 5 分钟,当我单击图标再次启动我的应用程序时,我会看到我的应用程序一瞬间,然后它就发生了黑屏
I currently have an iPhone application that runs fine on the simulator and also runs fine on a real device when it is connected to the Mac and is attached to the Xcode debugger.
I can close the app and open it again no problem.
However when I remove the device from the mac usb and try to use my application normally it sometimes tries to load and gets stuck on a blank black screen. Other times it will load normally and if I press the home button and launch the app again it usually launches fine.
The device is setup for debugging and I simply place the app on it by running it on Xcode, so is this my problem? Do I need to change the apps settings to get it to run on the device without this issue to a release version or something along those lines?
EDIT:
I have some additional info that seems to reproduce it everytime.
It happens if I push my app to the background by pressing the home button, then I leave the device lying there for around 5 minutes and when I click on the icon to launch my app again I see my app for a split second and then its a black screen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论