我已经构建了一个离子应用程序,在ios中Splash屏幕正在缩放(Disorted) . 当我运行“离子Cordova资源”时,在/ resources / ios / splash /中创建的图像看起来很好 . 但是当我使用xCode在模拟器或物理设备中运行app时,Image会缩放并显示缩放 .
这是我的应用信息:
cli包:(/ usr / local / lib / node_modules)
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
全球套餐:
cordova (Cordova CLI) : 7.1.0
本地包裹:
@ionic/app-scripts : 3.1.2
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
系统:
ios-deploy : 1.9.2
Node : v8.9.1
npm : 5.5.1
OS : macOS Sierra
Xcode : Xcode 9.1 Build version 9B55
请帮忙!提前致谢
1 回答
你的 resources 文件夹是什么样的?我可以和你分享我的结构吗?
首先,立即清空 resources 文件夹 . 只放置2个源文件 -
splash.png (1024x1024)
和icon.png (2732x2732)
. 接下来,运行ionic cordova resources
. 这将导致与上述结构一样 .希望这可能对你有所帮助 .