简体   繁体   中英

UIImageView going to top left of cell when setting width and height constraints.

在此处输入图片说明

I'm setting 50 / 50 for width and height and trying to set it ten from the top and ten from the left side, but when I run the app the view gets pushed all the way to the top left.

I've completely removed all restraints and started from scratch on the tableview, and it's still a problem.

Never had this problem before, any ideas?

While set constraint to any UIController uncheck "checkbox constraint to margin" display in Image and then set constraint and try again. May it will help you. 在此处输入图片说明

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