简体   繁体   中英

iOS 7 - XCode 5 - Constraints

I am trying to learn iOS development, but I need portrait and landscape in my project. As I set it up, I notice that I am messing everything up. I may need a bit of help with this.

This is what I need in landscape: 1个

Here it is in landscape: 2

You see, I've been trying out Auto Layout, but it's been a really bad experience. How do I make constraints on this?

I need it to fit in Portrait and Landscape, but as soon as I fit it with either of them, it messes up the other view.

Do you guys have any ideas?

You will want to pin the top, left, and right edges of your webview to the superview. Then create a vertical space constraint between the toolbar and the webview.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM