How can I create space between table view cells using constraints?
问题 As you can see in the screenshot, there's no space between the top image and the top of the screen. Also, all my images are not the same size. How can I create space between these cells and also make all the images the same size. 回答1: You could create a height constraint on the UIImageView . Then create an aspect ratio constraint and set it to something like 16:9. Then set the contentMode property of the UIImageView to AspectFill and turn on Clip To Bounds . Then constrain the top of the