接上一 commit f4307cc(WebView 全屏铺满):splash 启动图也应保持一致策略, 否则启动瞬间(iOS 系统 LaunchScreen)和过渡期(SplashOverlay)仍会显示 左右大黑边,与 WebView 全屏的视觉不连续。 3 处 contentMode 从 scaleAspectFit 改为 scaleAspectFill: - LaunchScreen.storyboard(iOS 启动瞬间) - WebContainerViewController 内 SplashOverlay.imageView - SubGameViewController 内 SplashOverlay.imageView scaleAspectFill 行为:素材 1136×640(16:9)在现代 iPhone 横屏(19.5:9) 上高度撑满,宽度按比例放大→左右轻微裁切。启动图左右是空白底色,logo + 文字主体居中可见,裁切无影响。 等价 daoqi msext LaunchImage Asset Catalog 时代「启动图覆盖整屏」体感。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
41 lines
2.8 KiB
XML
41 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22155" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
<device id="retina6_12" orientation="landscape" appearance="light"/>
|
|
<dependencies>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22131"/>
|
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
</dependencies>
|
|
<scenes>
|
|
<!--Splash 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="852" height="393"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" image="SplashImage" translatesAutoresizingMaskIntoConstraints="NO" id="ImgV-Sp-1ab">
|
|
<rect key="frame" x="0.0" y="0.0" width="852" height="393"/>
|
|
</imageView>
|
|
</subviews>
|
|
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
<constraints>
|
|
<constraint firstAttribute="trailing" secondItem="ImgV-Sp-1ab" secondAttribute="trailing" id="cst-tr-001"/>
|
|
<constraint firstItem="ImgV-Sp-1ab" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="cst-ld-002"/>
|
|
<constraint firstItem="ImgV-Sp-1ab" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="cst-tp-003"/>
|
|
<constraint firstAttribute="bottom" secondItem="ImgV-Sp-1ab" secondAttribute="bottom" id="cst-bt-004"/>
|
|
</constraints>
|
|
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
|
</view>
|
|
</viewController>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
</objects>
|
|
<point key="canvasLocation" x="53" y="375"/>
|
|
</scene>
|
|
</scenes>
|
|
<resources>
|
|
<image name="SplashImage" width="1136" height="640"/>
|
|
</resources>
|
|
</document>
|