Change your colouring rect like this...
CGContextFillRect(context, CGRectMake(0, 0, 320, 30));
Use 0, 0 as the origins not 0, 440.
That should work.
Inside drawRect you are dealing in the vector space of the view itself not its superview. So 0, 0 is the top left of your rectangleView
.