I am using a TableView with the UIImageView and UILabel on the Table Cell. I set constraints for UIImageView as like this:
And for the UILabel, I set constraints like this:
All the constraints set are working properly on every iPhone model as I want but it's not working as expected on iPad. There is a gap on the right portion of the cell. I want the UILabel to be filled completely with the margin of 8 on the right side.
How to fix this issue? Am I doing the wrong way? Any suggestion? Thanks. :)
答案 0 :(得分:0)
好像你正在使用wAny hAny size class。为图像视图和标签添加的约束看起来很好。如果在View Controller中拖动表视图,请检查表视图约束。或者你可以尝试给标签提供宽高比,也许这可以解决你的问题。