简体   繁体   中英

Auto Layout extra spacing

I set my UI elements with offsets 0(left), 0(right). However, there are extra spacing on this sides. Please take a look at screen:

在此输入图像描述

How to fix that?

You'll want to make sure you don't have Constrain to Margins ticked when you set your constraint.

I've attached a screen shot.

在此输入图像描述

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