Xcode: Autosizing preview window missing

2019-02-19 18:01发布

I am learning iOS and using Apress - Beggining iOS 5 development book. The book says there is a window to preview UI elements's autosizing behaviour in size inspector as:
enter image description here

but I can not see such a window. After searching in Xcode windows I realized that that windows actually appearing in a very short time period while switching size inspector to any other section in utilities tab. How can I make it constanly appear?

3条回答
劳资没心,怎么记你
3楼-- · 2019-02-19 18:44

While you are editing XIB or storyboard file. You can see "Size Inspector" tab panel at right menu. It has a ruler icon.

But the view -that you want to set it's layout- must be selected. At this sample on screenshot, a Label (text:social) is selected.

enter image description here

查看更多
时光不老,我们不散
4楼-- · 2019-02-19 18:48

I have found the answer here Xcode 4.3 not presenting Autoresizing panel in Size Inspector Just uncheck "Use Auto Layout" option on file inspector tab:
enter image description here

查看更多
登录 后发表回答