Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode 4.5: can't set root view autoresizingMask in Interface Builder
    primarykey
    data
    text
    <p>I'm quite puzzled by what it appears to be a bug in Xcode 4.5. I can't set the autoresizingMask property of the root view of a newly created UIViewController in Interface Builder. These are the steps to reproduce the issue:</p> <ul> <li>Create a new Storyboard</li> <li>Uncheck Use Autolayout in the File inspector</li> <li>Select the root view of the default scene</li> <li>Go to the Size Inspector</li> <li>The springs in the Autosizing dialog are dashed, greyed out and can't be clicked (the struts are working properly).</li> </ul> <p>If I delete the existing view and drag a new view from the Object Library, the new view has the autosizingMask enabled (and can't be disabled).</p> <p>This happened twice on 2 projects I'm working on, but it doesn't happen on a freshly created project. Am I missing something? What can trigger this behavior? </p> <p>This is the XML of a test storyboard. The first ViewController, with <code>storyboardIdentifier="springsWorking"</code> is the one I edited deleting the original view, the second one with <code>storyboardIdentifier="default"</code> is a default one.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="12C60" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="KEy-1l-Qqy"&gt; &lt;dependencies&gt; &lt;plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/&gt; &lt;/dependencies&gt; &lt;scenes&gt; &lt;!--View Controller--&gt; &lt;scene sceneID="dwh-DZ-gCp"&gt; &lt;objects&gt; &lt;viewController storyboardIdentifier="springsWorking" id="KEy-1l-Qqy" sceneMemberID="viewController"&gt; &lt;view key="view" contentMode="scaleToFill" id="ngZ-jh-RR4"&gt; &lt;rect key="frame" x="0.0" y="20" width="768" height="1004"/&gt; &lt;autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/&gt; &lt;color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/&gt; &lt;/view&gt; &lt;/viewController&gt; &lt;placeholder placeholderIdentifier="IBFirstResponder" id="jow-h4-M4B" userLabel="First Responder" sceneMemberID="firstResponder"/&gt; &lt;/objects&gt; &lt;point key="canvasLocation" x="-428" y="-327"/&gt; &lt;/scene&gt; &lt;!--View Controller--&gt; &lt;scene sceneID="445-Ak-YxL"&gt; &lt;objects&gt; &lt;viewController storyboardIdentifier="default" id="ZA8-km-Ecn" sceneMemberID="viewController"&gt; &lt;view key="view" contentMode="scaleToFill" id="lRF-Uf-5lh"&gt; &lt;rect key="frame" x="0.0" y="20" width="768" height="1004"/&gt; &lt;autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/&gt; &lt;color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/&gt; &lt;/view&gt; &lt;/viewController&gt; &lt;placeholder placeholderIdentifier="IBFirstResponder" id="fZf-TK-JQE" userLabel="First Responder" sceneMemberID="firstResponder"/&gt; &lt;/objects&gt; &lt;point key="canvasLocation" x="760" y="-313"/&gt; &lt;/scene&gt; &lt;/scenes&gt; &lt;simulatedMetricsContainer key="defaultSimulatedMetrics"&gt; &lt;simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/&gt; &lt;simulatedOrientationMetrics key="orientation"/&gt; &lt;simulatedScreenMetrics key="destination"/&gt; &lt;/simulatedMetricsContainer&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload