如何在 iPhone 上启动 PhoneGap 应用程序时使加载旋转器居中
在 iPhone 上,在 PhoneGap 应用程序初始化/加载期间,屏幕左上角(出现初始屏幕之前)会出现一个动画加载图标(旋转图标)。
我怎样才能让它出现在屏幕中央?
On iPhones, during the initialization/loading of a PhoneGap application, there is an animated loading icon (spinner) in the top left of the screen (before the splash screen appears).
How can I make this appear in the center of the screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也在寻找定制方案,并在 github 上发现了这个巨大的改进:
phonegap 启动屏幕和加载指示器
您必须下载并替换位于“ PhoneGapLib/Classes/PhoneGapDelegate.m”并按照以下步骤操作:
这对我来说非常有效,甚至结合了带有加载指示器的启动屏幕,可在启动时节省几秒钟。
I was searching for a customization too and found this great improvement on github:
phonegap startup screen and loading indicator
You have to download and replace the file located in "PhoneGapLib/Classes/PhoneGapDelegate.m" and follow this steps:
This perfectly worked for me and even combines the splash screen with the loading indicator, which saves some seconds on startup.