简体   繁体   中英

How to properly set my constraints?

I'm trying to set my constraints properly so I will get the result shown in this storyboard: http://imgur.com/2CWyaVP

With suggested constraints, I get this : http://imgur.com/8KvJcRC

Which exact constraints should I be setting to make the picture and the two labels stay in place ?

Don't use the suggested constraints, only causes trouble. Looks like you need the image to be constrained to left side, top and bottom, with aspect ratio constraint. Headline and author should then be constrained to the image on the leading side and the edge of the cell on the trailing side; also the top and bottom and you're set.

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