当前位置: 首页 > news >正文

制作uniapp需要的storyboard全屏ios启动图

//锁定竖屏
plus.screen.lockOrientation("portrait-primary")
// #endif

首先准备启动图两个

dc_launchscreen_portrait_background@2x.png(750*1624)

dc_launchscreen_portrait_background@3x.png(1125*2436)

LaunchScreen.storyboard文件内容如下

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234"targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES"useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"><device id="retina6_5" orientation="portrait" appearance="light" /><dependencies><deployment identifier="iOS" /><plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685" /><capability name="Safe area layout guides" minToolsVersion="9.0" /><capability name="System colors in document resources" minToolsVersion="11.0" /></dependencies><scenes><!--View Controller--><scene sceneID="EHf-IW-A2E"><objects><viewController id="01J-lp-oVM" sceneMemberID="viewController"><view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"><rect key="frame" x="0.0" y="0.0" width="414" height="896" /><autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" /><subviews><!-- 全屏背景图 --><imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill"image="dc_launchscreen_portrait_background.png"translatesAutoresizingMaskIntoConstraints="NO" id="Tt8-jS-2H5"></imageView><!-- App 图标 --><imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit"image="dc_launchscreen_icon.png" translatesAutoresizingMaskIntoConstraints="NO"id="vp6-uo-KS2"></imageView></subviews><!-- Safe Area --><viewLayoutGuide key="safeArea" id="IW3-oA-Ytg" /><!-- 背景透明(避免闪白) --><color key="backgroundColor" red="0" green="0" blue="0" alpha="0" colorSpace="custom"customColorSpace="sRGB" /><!-- 约束 --><constraints><!-- 背景图:四边贴满父视图(关键!不要对齐 Safe Area) --><constraint firstItem="Tt8-jS-2H5" firstAttribute="top" secondItem="Ze5-6b-2t3"secondAttribute="top" id="FH7-NM-QY8" /><constraint firstItem="Tt8-jS-2H5" firstAttribute="leading" secondItem="Ze5-6b-2t3"secondAttribute="leading" id="fnt-hE-VMi" /><constraint firstItem="Tt8-jS-2H5" firstAttribute="trailing" secondItem="Ze5-6b-2t3"secondAttribute="trailing" id="QGW-bk-xBw" /><constraint firstItem="Tt8-jS-2H5" firstAttribute="bottom" secondItem="Ze5-6b-2t3"secondAttribute="bottom" id="seh-wj-zPF" /><!-- App 图标居中 --><constraint firstItem="vp6-uo-KS2" firstAttribute="centerX" secondItem="Ze5-6b-2t3"secondAttribute="centerX" id="GM5-vc-qeO" /><constraint firstItem="vp6-uo-KS2" firstAttribute="centerY" secondItem="Ze5-6b-2t3"secondAttribute="centerY" id="Qji-wc-LLD" /><!-- 可选:限制图标最小距离边缘 --><constraint firstItem="vp6-uo-KS2" firstAttribute="top" relation="greaterThanOrEqual"secondItem="Ze5-6b-2t3" secondAttribute="top" constant="100" id="M4i-XX-uO2" /></constraints></view></viewController><placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder"sceneMemberID="firstResponder" /></objects></scene></scenes><resources><!-- 推荐尺寸:1242x2688 (@3x) 以适配所有 iPhone --><image name="dc_launchscreen_portrait_background.png" width="1242" height="2688" /><image name="dc_launchscreen_icon.png" width="120" height="120" /></resources>
</document>

将3个文件压缩成zip,hbuilderx中选择zip

发行-云打包到手机即可,重新自定义基座应该也会生效,不生效就卸载原应用重新安装


文章转载自:

http://5i7PiDoz.pswqx.cn
http://EvvhpHEK.pswqx.cn
http://pVKuahqg.pswqx.cn
http://u4tkRs5x.pswqx.cn
http://3jHpEIzh.pswqx.cn
http://vpfyYJ56.pswqx.cn
http://zKXUBi7m.pswqx.cn
http://fKyq3R6u.pswqx.cn
http://Fg3ba77M.pswqx.cn
http://LjINSdZi.pswqx.cn
http://Ch5VStQi.pswqx.cn
http://FBgRD5om.pswqx.cn
http://I0JG8s4c.pswqx.cn
http://h6uRsczH.pswqx.cn
http://tg1qkAvX.pswqx.cn
http://TrPTWktp.pswqx.cn
http://R477iU4h.pswqx.cn
http://LhnyN8uI.pswqx.cn
http://IHM9AJI9.pswqx.cn
http://yRd6TGnT.pswqx.cn
http://eAgXJN4B.pswqx.cn
http://B9ufm60C.pswqx.cn
http://8CeZixgk.pswqx.cn
http://GbVqjOci.pswqx.cn
http://VifyRTKN.pswqx.cn
http://aaFham2u.pswqx.cn
http://a4TgnoHx.pswqx.cn
http://hj08oeMs.pswqx.cn
http://7ete2arw.pswqx.cn
http://wRhTZO96.pswqx.cn
http://www.dtcms.com/a/386701.html

相关文章:

  • 嵌入式硬件工程师的每日提问(2)
  • 清华最新发布114页大型推理模型的强化学习综述
  • 软件质量保证(SQA)和测试的关系
  • 22.1 突破单卡显存极限!DeepSpeed ZeRO实战:用1块GPU训练百亿参数大模型
  • 框架-SpringCloud-1
  • Redis 与微服务架构结合:高并发场景下的架构艺术
  • g4f 0.6.2.9版本安装以及服务不太稳定的问题探究
  • I2C通信
  • 经典算法题之x 的平方根
  • 【精品资料鉴赏】RPA财务机器人应用(基于UiPath)教材配套课件
  • 融合A*与蚁群算法的室内送餐机器人多目标路径规划方法研究
  • RustDesk:免费开源的跨平台远程桌面控制软件
  • 超越NAT:如何构建高效、安全的内网穿透隧道
  • RabbitMQ理解
  • 【闪电科创】边缘计算深度学习辅导
  • Linux服务器中Mysql定时备份(清理)数据库
  • 物联网智能网关配置教程:实现注塑机数据经基恩士PLC上传至云平台
  • 搭建第一个Spring Boot项目
  • MyBatis 注解操作
  • InternVL3.5 开源:革新多模态架构,重塑感知与推理的边界​
  • 新手教程—LabelImg标注工具使用与YOLO格式转换及数据集划分教程
  • C++奇异递归模板模式(CRTP)
  • 国产数据库地区分布,北京一骑绝尘
  • 超表面赋能结构光三维重建 | 实现超大视场高精度实时重建
  • 在Oracle\PG\GaussDB库中实现用户甲在其它用户的SCHEMA中创建表的方法及所属属主的差异
  • TDengine IDMP 基本功能——数据可视化
  • SpringMVC静态资源与Servlet容器指南
  • 安卓实现miniLzo压缩算法
  • [deepseek]LNK2001错误即单独编译汇编并链接
  • Interview X,新一代面试工具