Ankur Patel
Ankur Patel

Reputation: 477

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

Upvotes: 0

Views: 398

Answers (2)

Bhadresh Kathiriya
Bhadresh Kathiriya

Reputation: 3244

Try Constraint this type:

First Screen: enter image description here

Second Screen: enter image description here

your storyboard file:

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

Upvotes: 1

Mahesh Agrawal
Mahesh Agrawal

Reputation: 3358

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.

Upvotes: 1

Related Questions