2014-09-26 92 views

回答

10
前回答

您必須使用Xcode 6降級故事板。如果你不能運行它,你需要找到一個可以的朋友。

在Xcode 6中打開故事板。在File Inspector中,找到「Opens In」菜單並將其設置爲「Xcode 5.1」。如果故事板使用大小類別,請選擇要保留的大小類別。保存文件。

downgrading storyboard

+4

Bravo on the gif! – 2014-09-26 19:01:35

+0

很好的答案。我第一次看到動畫在stackoverflow。 – 2014-09-26 19:05:39

+0

那個gif真是棒極了!你是怎麼做到的?我很樂意使用它。 – 2014-09-27 10:50:58

1

在Xcode中打開您的故事板。打開右側的Utilities面板,點擊File Inspector標籤,然後從Interface Builder Document下拉菜單中選擇。

enter image description here

1

已經通過@馬克愛丁頓

Perform these steps to make a storyboard modified by Xcode 6 load and compile again with Xcode 5: 

Using Xcode 6: 

1. Set the "Opens in" to Xcode 5.1 in the Interface Builder Document Section of the storyboard File Inspector 
2. Uncheck the "Use Size Classes" 
3. Delete the constraints added using Xcode 6 
4. Ensure that the storyboard no longer contains this key at the top of the file: 

<capability name="Constraints to layout margins" minToolsVersion="6.0"/> 
  • 打開項目在Xcode 5,重新創建刪除約束並編譯