Added a button to the prototype cell in the table view, this button connected to another screen (view controller), after launching the program everything fell and now the interface does not show the elements (Main.storyboard changed to storyboard) I tried to manually rename, in this case the program compiles successfully, but the interface is still not displayed in xcode enter image description here How to return the interface? :(

<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="xae-ZQ-e1F" id="e1Q-FJ-p2U"> <rect key="frame" x="0.0" y="0.0" width="320" height="51"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" tag="1001" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z9Z-o6-sHG"> <rect key="frame" x="8" y="-3" width="129" height="56"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" tag="1002" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WBs-3y-WR0"> <rect key="frame" x="145" y="-3" width="125" height="56"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> </label> <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EuP-u1-yb2"> <rect key="frame" x="253" y="11" width="46" height="30"/> <state key="normal" title="Button"/> <connections> <segue destination="jHL-GC-xJZ" kind="showDetail" id="aLo-Tt-myR"/> </connections> </button> </subviews> </tableViewCellContentView> 

I tried to just erase this piece of code from the 'button' to '/ button'>, there is still no interface, and the program crashes. enter image description here

enter image description here

    1 answer 1

    For whatever reason, your storyboard is not displayed correctly in the navigator. Perhaps you accidentally renamed it. You are displayed as a storyboard , and this should be the file extension, and not the name, rename it to Main.storyboard

    • I tried to rename, the compilation is successful, but in xcode, the interface in the storyboard is not displayed, the screenshot added - StriBog
    • Right-click on Main.storyboard - Opan As - Interface builder Storyboard and see what happens there - Vitali Eller