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

ios制作storyboard全屏启动图

//锁定竖屏
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://jsfdw1W6.tqLyb.cn
http://rXwPa5lR.tqLyb.cn
http://2pfEF6lk.tqLyb.cn
http://MeNDCjyo.tqLyb.cn
http://gXHRROOv.tqLyb.cn
http://qb2a9wQS.tqLyb.cn
http://Uio1k7p7.tqLyb.cn
http://MTKAYkUt.tqLyb.cn
http://EruexKos.tqLyb.cn
http://PSoEiHOt.tqLyb.cn
http://FOvg9H2B.tqLyb.cn
http://tTK8sSd6.tqLyb.cn
http://OScQohHI.tqLyb.cn
http://pCBNFrKw.tqLyb.cn
http://QsPHU7CM.tqLyb.cn
http://q0NY08ag.tqLyb.cn
http://ClzKfNFr.tqLyb.cn
http://uVS9wM6S.tqLyb.cn
http://uIDSh3Mc.tqLyb.cn
http://xHFI0Soz.tqLyb.cn
http://H8TABk01.tqLyb.cn
http://U61UHkMc.tqLyb.cn
http://Pn38DXBN.tqLyb.cn
http://L6dSj4og.tqLyb.cn
http://l3BICX16.tqLyb.cn
http://J4yE56vV.tqLyb.cn
http://YNZKW4qx.tqLyb.cn
http://caoCBvzo.tqLyb.cn
http://XneYxNuO.tqLyb.cn
http://cnuaiOZn.tqLyb.cn
http://www.dtcms.com/a/386155.html

相关文章:

  • 2025高教杯数学建模大赛全流程,从数据处理、建模到模型评价
  • 点拨任务应用于哪些业务场景
  • 墨色规则与血色节点:C++红黑树设计与实现探秘
  • C#语言入门详解(19)委托详解
  • 【数字展厅】企业展厅设计怎样平衡科技与人文呈现?
  • Day25_【深度学习(3)—PyTorch使用(6)—张量拼接操作】
  • WSL2(ubuntu20.04)+vscode联合开发(附迁移方法)
  • 无线数传模块优化汽车装配立库物料运送设备间低延迟通信方案
  • Parasoft助力「东软睿驰」打造高质量汽车软件
  • 设计多租户 SaaS 系统,如何做到数据隔离 资源配额?
  • 基于错误xsleak 悬空标记 使用css利用帧计数 -- Pure leak ASIS CTF 2025
  • 【Day 57】Redis的部署
  • 在 Zellij 中用 Neovim 优雅地解决剪贴板同步问题
  • 云手机的技术架构可分为哪些
  • 基于 GitHub Actions 的 Kubernetes 集群节点变更操作自动化
  • 嵌入式第五十四天(EPIT,GPT)
  • 何为楼宇自动化控制系统的质量管理?本质与关键要素解析
  • Spring 源码学习(十二)—— HandlerMapping(一)
  • 七牛云技术前瞻:GPT-5-Codex如何开启智能体编程新时代
  • The Oxford-IIIT宠物图像识别数据集(753M)
  • 从Cursor到GPT-5-Codex:AI编程Agent的技术与商业全解析
  • 实践-医学影像AI诊断系统:基于DICOMweb、ViT/U-Net和Orthanc的端到端实现
  • HarmonyOS 应用开发新范式:深入理解声明式 UI 与状态管理 (基于 ArkUI API 12+)
  • UDP和TCP网络通信
  • 基于R语言的水文、水环境模型优化技术及快速率定方法与多模型案例应用
  • 网络:RDMA原理以及在AI基础设施中的应用
  • 深度学习之pytorch基本使用(二)
  • Redis 协议(RESP)详解:请求与响应解析
  • k8s污点与容忍介绍
  • 设计模式-桥接模式04