2

I just noticed after I have upgraded to iOS 9.1 on my iPhone 6s that launch screen has a black square in the middle, so it covers the logo. I use LaunchScreen.xib file. It all works on previous iOS versions and simulator.

Anyone had that experience and knows how to fix it ? Or is it OS bug that needs to be reported ?

Here is a screenshot of my launch screen.

enter image description here

Edit:

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

I am quite sure the black square supposed to be image.

PiotrDomo
  • 1,045
  • 10
  • 29

1 Answers1

2

This was somehow related to corrupted .png image. I am surprised as it worked well everywhere else. Replaced the image and the problem is fixed.

PiotrDomo
  • 1,045
  • 10
  • 29
  • 1
    How did you figure out that your png was corrupt. I am also chasing this bug. – Nash Nov 27 '15 at 14:09
  • For me, the .png was not corrupt, only in high resolution (probably more than the device could handle). solved it by decreasing the image quality – Eliktz Aug 08 '16 at 19:27
  • for me the problem was with the .png extension on the widget. Putting only the name of image (image.png -> image) works . – doxsi Nov 20 '18 at 08:35