Objective c 是否在UITableViewCell中向imageView添加填充?

Objective c 是否在UITableViewCell中向imageView添加填充?,objective-c,uitableview,swift,imageview,padding,Objective C,Uitableview,Swift,Imageview,Padding,我有一个UITableViewCell,我在其中添加用户的facebook个人资料图片,但四舍五入。基本上,这是: self.imageView.image = _fbProfilePicture! self.imageView.layer.cornerRadius = self.imageView.frame.size.height/2 self.imageView.clipsToBounds = true 但是,此图像与UITableViewCell的边缘齐平。我想在图像和细胞边缘之间增加

我有一个UITableViewCell,我在其中添加用户的facebook个人资料图片,但四舍五入。基本上,这是:

self.imageView.image = _fbProfilePicture!
self.imageView.layer.cornerRadius = self.imageView.frame.size.height/2
self.imageView.clipsToBounds = true

但是,此图像与UITableViewCell的边缘齐平。我想在图像和细胞边缘之间增加一些呼吸空间,但我还没有找到一个简单的方法。有人能提出一个解决方案吗?可能不需要操纵故事板中的原型单元?谢谢

您应该向原型单元格中的控件添加约束。您可以添加它的外观图片吗?