关于启动页面不能全屏的问题
来源:15-2 启动白屏问题优化与启动屏制作

疯狂原始人
2025-04-23
不能全屏后,也尝试了其他设置,比如xcode右侧View的Content Mode的各种模式充满不充满,靠上靠下,xcode也能显示我设置的变化,可是到android studio运行后的ios模拟器,没有任何变化,一直都是那样的显示。是哪里没有做到吗?
ios/Runner/Base.lproj/LaunchScreen.storyboard
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="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="23506"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<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 opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" misplaced="YES" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="noM-Bc-0yW">
<rect key="frame" x="0.0" y="-244" width="440" height="1439"/>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="noM-Bc-0yW" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="1CD-vO-gHn"/>
<constraint firstItem="noM-Bc-0yW" firstAttribute="height" secondItem="Ze5-6b-2t3" secondAttribute="height" multiplier="0.937238" id="Hc5-F7-wDN"/>
<constraint firstItem="noM-Bc-0yW" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="pDk-OR-WOx"/>
<constraint firstItem="noM-Bc-0yW" firstAttribute="width" secondItem="Ze5-6b-2t3" secondAttribute="width" multiplier="0.940909" id="wVf-BS-Rbh"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="80.454545454545453" y="263.59832635983264"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="414" height="896"/>
</resources>
</document>
写回答
1回答
-
疯狂原始人
提问者
2025-04-23
好吧,必须要重新设置那四个约束就生效了。。。。。。。。。
012025-04-24
相似问题