简体   繁体   中英

IOS Image Constraints not working properly in devices

I am new to IOS and learning to work with Constraints, I basically have a TableView and an Image that I want to take up the full width of the TableView. The Image works correctly in IOS 6s but not in IOS 7 plus emulator . How can I make my constraint work ? The image is set to scale to fill and this is how it looks . As stated before with the Constraints I am trying to get the iPhone 7 plus emulator to show the image just like the iPhone 6s . My current understanding is that when you set Trailing and Leading to each other then the image is supposed to take up the full width of the TableView .

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明 在此处输入图片说明

It looks like your table isn't constrained on each side. If you look at the line between the cells on the 7 plus it doesn't go to the right edge of the screen, but it does on the 6s. Meaning it's probably the table itself that isn't constrained.

可能是因为您没有为表格视图设置正确的约束,或者已通过代码更改了表格视图的框架。

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