Circular UIImageView in UITableView without performance hit?

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;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)