简体   繁体   中英

Autolayot aspect ratio iOS

I can not set perfect Autolayout for Login and Facebook login button below forgot password. They are disappear from screen after setting Autolayout. Here I have attached my project link.

I want to expand all object proportionally same as like we get by using AutoResizeing

I have suffering problem to expand some objects with aspect ratio. its just two simple view for login

https://drive.google.com/file/d/0B5mabdphYDhzdllJYzY0czVrbFk/view?usp=sharing

I have added auto layout constraints to your story board. Check the code in below link. Its a public repo and will be available forever.

https://github.com/mahesh-agrawal/Autolayout-Problem

tell me if any problem.

Try Constraint this type:

First Screen: 在此处输入图片说明

Second Screen: 在此处输入图片说明

your storyboard file:

https://drive.google.com/open?id=0B_HNPywgMhtVTkJqQzd0QWlnZVU

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