ios - iOS 9.1 启动屏幕上的黑色方 block

标签 ios iphone xcode ios9.1

我刚刚在 iPhone 6s 上升级到 iOS 9.1 后注意到启动屏幕中间有一个黑色方 block ,因此它覆盖了 Logo 。 我使用 LaunchScreen.xib 文件。这一切都适用于以前的 iOS 版本和模拟器。

有人有过这样的经历并且知道如何解决吗?或者是需要报告的操作系统错误?

这是我的启动屏幕的屏幕截图。

enter image description here

编辑:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9059" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
    <dependencies>
        <deployment identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleAspectFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="splash_screen.png" translatesAutoresizingMaskIntoConstraints="NO" id="JQD-7b-VFF">
                    <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
                    <color key="backgroundColor" red="0.1962193080357143" green="0.1962193080357143" blue="0.1962193080357143" alpha="1" colorSpace="calibratedRGB"/>
                </imageView>
            </subviews>
            <color key="backgroundColor" red="0.96470594409999999" green="0.96470594409999999" blue="0.96470594409999999" alpha="1" colorSpace="deviceRGB"/>
            <constraints>
                <constraint firstItem="JQD-7b-VFF" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="I7G-Rj-go3"/>
                <constraint firstAttribute="trailing" secondItem="JQD-7b-VFF" secondAttribute="trailing" id="XkP-Lr-1sD"/>
                <constraint firstAttribute="bottom" secondItem="JQD-7b-VFF" secondAttribute="bottom" id="ZHX-bu-Tzq"/>
                <constraint firstItem="JQD-7b-VFF" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="oJ2-QD-G8U"/>
            </constraints>
            <nil key="simulatedStatusBarMetrics"/>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="404" y="445"/>
        </view>
    </objects>
    <resources>
        <image name="splash_screen.png" width="320" height="480"/>
    </resources>
</document>

我很确定黑色方 block 应该是图像。

最佳答案

这在某种程度上与损坏的 .png 图像有关。我很惊讶,因为它在其他地方都运行良好。更换图片,问题解决。

关于ios - iOS 9.1 启动屏幕上的黑色方 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33546487/

相关文章:

ios - Swift/如何将addSubview设置为Subview?

ios - CAGradientLayer 未显示?

ios - 如何获取图片的路径?

ios - 访问数组中对象的属性 - Swift 3.0

objective-c - 如何像事件监视器一样以编程方式检查 Mac 上的可用系统内存?

ios - 弹出演示 Controller (_ :willRepositionPopoverTo:in:) Trying to change the size of popUp on different orientation

nsmutable 数组上的 iphone sdk 搜索栏

Php脚本无法在服务器上上传图片

objective-c - 如何在全屏 UIScrollView 中将 UIImageView 居中?

ios - 如果启用了自动布局,则不会调用 drawRect