I want the bottom (not quite half) of my UIView to be a different color than the top.
I'm wondering if I should create a CGRect and then color that? Is this along the right track?
- (void)drawRect:(CGRect)rect {
CGRect aRect = CGRectMake(x, y, width, height);
// Fill the rectangle with grey
[[UIColor greyColor] setFill];
UIRectFill( rect );
}
Yes, as you are already overriding drawRect method, this will do.
Change the values inside the frames as you wish.