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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -