Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
GLPaint is a really old sample, and appears to have not been updated to use a UIViewController subclass to manage its view, and as such will elicit this warning because the window's rootViewController property will not have been set. I would recommend you look at a more recent sample, or even at

Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
On Mar 28, 2012, at 6:22 AM, David Delmonte wrote: > Hi, I'm trying to do the above. I've added a simple UIButton at the > AppDelegate level (as there is no ViewController). > > When the button is tapped: > > - (IBAction)pictureButtonTapped:(id)sender { > NSLog(@"%s", __FUNCTION__); >

Adding a background image to the GLPaint sample

2012-03-28 Thread David Delmonte
Hi, I'm trying to do the above. I've added a simple UIButton at the AppDelegate level (as there is no ViewController). When the button is tapped: - (IBAction)pictureButtonTapped:(id)sender { NSLog(@"%s", __FUNCTION__); drawingView.backgroundColor = [UIColor colorWithPatternImage: