简体   繁体   中英

How should we fix UIFields in all iphone inches using Auto-layouts?

I am developing one project using Auto-layouts.

But I am facing here one problem in Register page ie

In 4 inch screen all UIFields fit perfectly, but in 6 inch screen there is some "space" coming at "bottom" side as like below 6 inch screen.

How should I resolve this problem?

And I am posting screen which Auto-layouts I have applied.

Applied Constraints:

在此处输入图片说明

4 inch:

在此处输入图片说明

6 inch:

在此处输入图片说明

Main problem is coming here 6 inch screen some space is coming at bottom side it's not seems like Good how should I resolve this problem?

If you want that all those button should always remain with same distance from bottom line then you can add constraint from main view's bottom (bottom space to bottom layout guide) for Register button instead of related to password field for Login button. Then add vertical spacing to the Forgot Password button related to Register button, and vertical spacing for Login button related to Forgot Password button. Like Below :

在此处输入图片说明

For Register Button , Add constraints :

在此处输入图片说明

For Forget Password Button, Add constraints : 在此处输入图片说明

And for Login Button, add constraints : 在此处输入图片说明

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