`
niCe
  • 浏览: 40436 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

UIApplication

 
阅读更多

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;

}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics