Xcode 4.5 + UIScrollView: Cannot see struts and springs (OSX 10.8 Mountain Lion)

后端 未结 3 2071
广开言路
广开言路 2021-02-13 04:53

Disclaimer: Brand new to iOS dev. Go easy on me.

Got a funny situation in Xcode 4.5. My Size Inspector looks like this:

3条回答
  •  离开以前
    2021-02-13 05:20

    You have Autolayout enabled for the view, turn that off and it will look like what you expect. Autolayout is a new feature for iOS6 that allows more granular control of how things are laid out, and really enhances what was previously available via the struts and sprints via autoresizing masks.

    To turn if off, open the Identify Inspector, and uncheck "Use Autolayout"

    enter image description here

提交回复
热议问题