objective c - Rounded views not working in iOS 9 -


i have code takes view , rounds corners - turning circle:

imageview = [[uiimageview alloc] initwithframe:cgrectmake(0, 0, 8, 8)]; imageview.layer.cornerradius = imageview.frame.size.width/2; imageview.layer.maskstobounds = yes; 

this works great on ios 7 , ios 8 - doesn't work on ios 9. how can fix it?

turns out adding background color imageview fixes issue...


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -