Quote:
Originally Posted by paluter
How do I change the background color of a CGRect?
Also, how can I change it's alpa?
|
Create a custom subclass of UIView.
Implement the drawRect method for the view.
Use the method UIRectFill to drill a rectangle. If you want the rectangle to be partly transparent you'll need to set the opaque flag on the view to NO and create a UIColor that's partly transparent.