iOS 全屏显示View

在包含navigationBar以及tabBar的项目中,全屏显示另外一个view(此处为UIScrollView)


[[UIApplicationsharedApplication]  

    setStatusBarHidden:YES  

    withAnimation:UIStatusBarAnimationNone]; 

   

 

self.navigationController.navigationBar.translucent =YES;

self.wantsFullScreenLayout = YES;

[self.navigationController setNavigationBarHidden:YESanimated:NO];

[self.tabBarController.tabBar setHidden:YES];

   

   myScrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0, 0,self.view.window.bounds.size.width,self.view.window.bounds.size.height)];


你可能感兴趣的:(iOS 全屏显示View)