The answer is pretty simple, just call
[[self view] setNeedsDisplay];
in the controller, when you change the frame size (or, if you do, the bottom line should send the message setNeedsDisplay to the view after changing the frame). If this does not work, try setting the background color.
,
- (void) drawRect:(CGRect) rect {
CGRect myBounds = self.bounds;
CGContextRef context = UIGraphicsGetCurrentContext();
[[UIColor colorWithPatternImage:[UIImage imageNamed:@"frame-repeat.png.png"]]set];
CGContextFillRect(context, myBounds);
}
, , setNeedsDisplay . 100%.
, , Pawel