arrays - Creating a Round Image in TableView -


i getting list of images parse , trying display them circle though image in parse square. in cellforrowatindexpath, use code:

cell1.imageview!.layer.cornerradius = cell1.imageview!.frame.size.height / 2 cell1.imageview!.clipstobounds = true 

here appears now: image

why images not round?

make sure set maskstobounds true after manipulate corner radius.:

cell.cellimage.layer.maskstobounds = true 

this last step you're missing.


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -