2012年9月2日 星期日

在storyboard下使用scroll view如何視覺化編輯畫面

1.
選擇controller的Inspector標籤
size屬性選擇Freeform

2.
選擇scroll view的Inspector標籤的右邊那個標籤
看到view那裏,編輯你要的width, height
接著就會看到storyboard上的controller的可編輯範圍出現變化了

3.
接著設計你的view
然後outlets scrollview的controller程式碼上,設定你在storyboard上的width, height

[self.sc setContentSize:CGSizeMake(320,600)];

DONE.

參考來源:
http://stackoverflow.com/questions/9288070/visually-arrange-subviews-in-a-large-uiscrollview

沒有留言: