iPhone Subview Transparent
-
21-09-2019 - |
Question
I subclassed a subview and added it to the current view. It draws a simple circle by overriding the draw method.
But the subview has a black background it looks like by default. How do I make the background of my subclassed subview to be transparent?
Solution
does
self.backgroundColor = [UIColor clearColor] not work?
OTHER TIPS
You can call next code into view initialization:
self.backgroundColor = [UIColor clearColor];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow