I'm working on a basic drawing app like the one in
this thread on iPod Touch Fans.
Now, the issue is that the size of the drawing area won't change. As-is, it cuts off below the status bar. On auto-rotation, the view is still stuck to the same dimensions - preventing it from expanding to the full size of the screen.
Does anyone have suggestions on how to fix this? Here's the section of code I *think* the issue is in the viewDidLoad.
I'd appreciate any help on this.
Code:
- (void)viewDidLoad {
[super viewDidLoad];
drawImage = [[UIImageView alloc] initWithImage:nil];
drawImage.frame = self.view.frame;
[self.view addSubview:drawImage];
mouseMoved = 0;
}