I have a Tab Bar controller inside a Navigation controller. I want to create a view, with a single 320x411 image (leaving the status bar, and the tab bar).
The image is shown for a network connection error.
Currently I'm using this code, in the tab bar item's individual view's viewDidLoad:
if (appDelegate.hasInternetAtStart == NO) {
CGRect myImageRect = CGRectMake(0.0f, 0.0f, 320.0f, 480.0f);
UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect];
[myImage setImage:[UIImage imageNamed:@"NetworkError.png"]];
myImage.opaque = YES;
[self.view pushViewController:myImage animated:NO];
[myImage release];
}
However this is allowing the elements below to be touched and accessed.
Is the right way to go about to show a error, or should I opt for another method.
I would like a single view, that will override all the other views in the tab bar item, and can be set in App Delegate if possible...