1, statusBar
//to obtain the statusBar frame
[[UIApplication sharedApplication] statusBarFrame];
//hidden statusBar
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
//when you app will run at crosswise ,if you want hidden statusBar, you must do this
//this will have a crosswise keyboard
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft];
2, delegate
+ (AppDelegate *)sharedAppDelegate
{
return (AppDelegate *) [UIApplication sharedApplication].delegate;
}