简体   繁体   中英

Problems Setting up constraints in IOS8 with Swift and Xcode 6

I have tried for several hours to design and place the different elements accordingly. But it seems like no matter what I do, the elements get messed up with sizes and location when moving to different device (screen sizes). How would you place constraints in the screen below to ensure proper scaling and position when moving to a different device? http://postimg.org/image/hl4incjzh/

I only work in portait mode. The views at the left is a UIImage view and a UIWebview which is hidden, and will show dynamically based on external content. Label and the textview below is also dynamically populated on ViewDidLoad.

Any ideas, suggestions?

You can click on a view element and use the add-constraints-menu:

There you can set different size-options like the margin, if the view should resize etc.

在此处输入图片说明

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