我在启动图像上有一个赞助商标志。有没有一种方法可以动态更改启动图像以旋转赞助商标志?
谢谢。
iPhone应用程序的默认图像必须是捆绑包中的固定图像文件。您不能进行动态更改。
然而,您可以在启动图像后应用程序加载时出现动态图像。您可以通过动画设置它或仅选择每次随机图像。
由于我需要在iPhone和iPad启动画面上使用不同的图片,因此我按照以下步骤进行了操作:
1. Add two UIImageViews
2. Set Width & Height constants for both UIImageViews as per your requirements.
3. Now select the iPhone UIImageView and set its Height Constraints Regular Regular (RR) height constant as 0.
4. Do the same for for iPad UIImageView and set its Height Regular Regular (RR) height constant as actual required height and set 0 to the Constant.
5. When you test it on iPhone the iPad ImageView will disappear and vice-versa will happen on iPad.