简体   繁体   中英

Adjusting Y position of Elements for all Iphone screen size using AutoLayout

I am using an Image view which is placed on top of parent view. Color of parent viewis changed. i want my design to look same on all iphone sceen sizes in portait. top tabel is positioned accuratly as it should be in the center. but I am having issue with my Logo as you can see in screen shots Logo is at perfect place in only iphone 5.5 inch. what constraint i should set to position my logo as same point (lets say S in "YAS" should be touhcing the hair of girl as in Iphone 5.5) for all devices ? i have applied constaints but its not working please guide me

This is wahtI am getting in previw 在此处输入图片说明 These are my Constraints 在此处输入图片说明 This is my Xib 在此处输入图片说明 I tried differecnt values for multiplier but nothing happened
在此处输入图片说明

image View is in Scale to fill mode

Position your LOGO Horizontallycenter manually and then give TOP , LEADING , TRAILING and aspect ration constraint . When your view's width will increase these constraints will increase height of your Logo. Also set your ImageView(Logo) View -> Mode to Bottom (in Attribute Inspector).

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