Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS 9.1启动屏幕上的黑色方块 我刚刚注意到我的iPhone 6S升级到iOS 9.1后,启动屏幕中间有一个黑色的正方形,所以它覆盖了标志。 我使用LaunchScreen.xib文件。它都可以在以前的iOS版本和模拟器上运行_Ios_Iphone_Xcode_Ios9.1 - Fatal编程技术网

iOS 9.1启动屏幕上的黑色方块 我刚刚注意到我的iPhone 6S升级到iOS 9.1后,启动屏幕中间有一个黑色的正方形,所以它覆盖了标志。 我使用LaunchScreen.xib文件。它都可以在以前的iOS版本和模拟器上运行

iOS 9.1启动屏幕上的黑色方块 我刚刚注意到我的iPhone 6S升级到iOS 9.1后,启动屏幕中间有一个黑色的正方形,所以它覆盖了标志。 我使用LaunchScreen.xib文件。它都可以在以前的iOS版本和模拟器上运行,ios,iphone,xcode,ios9.1,Ios,Iphone,Xcode,Ios9.1,有人有过这样的经历,并且知道如何修复它吗?还是需要报告的是操作系统错误 这是我发布屏幕的截图 编辑: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9059" systemVersion="14F1021" targetRuntime="i

有人有过这样的经历,并且知道如何修复它吗?还是需要报告的是操作系统错误

这是我发布屏幕的截图

编辑:

<?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>


我很确定黑色的正方形应该是图像

这与损坏的.png图像有关。我很惊讶,因为它在其他地方都很有效。已替换图像,问题已解决。

能否提供xib文件的内容详细信息?是否正在寻找xml表示?我刚刚在xib文件中放置了一个简单的图像。您是否尝试过只为图像提供背景色,而不是操作系统为其设置图像?您是否尝试过,可能您也有相同的问题。您是如何发现您的png已损坏的。我也在追踪这个bug。对我来说,.png没有损坏,只是分辨率很高(可能超过了设备的处理能力)。通过降低图像质量解决了这个问题。对我来说,问题在于小部件上的.png扩展名。只输入图像的名称(image.png->image)就可以了。