Simply set the cornerRadius
to half of the width or height (assuming your object’s view is square).
For example, if your object’s view’s width and height are both 50:
itemImageView.layer.cornerRadius = 25;
Update – As user atulkhatri points out, it won’t work if you don’t add:
itemImageView.layer.masksToBounds = YES;