ITeye博客

statusbar 隐藏

修博龙泉 · 2012-11-27 11:30 · ios开发学习相关 · 移动开发 · Markdown


方法1:
 [[uiapplication sharedapplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
方法2:
UIView *proxyView = [[uiview alloc] initWithFrame:self.view.frame];
    proxyView.hidden=YES;
    proxyView.autoresizingMask= self.view.autoresizingMask;
    [self.view.superview addsubview:proxyview];
    [self.view.window addsubview:self.view];
    self.view.frame = [self.view.window convertrect:self.view.frame fromview:proxyview.superview];
    [uiview animatewithduration:0.2
                     animations:^{
                         self.view.frame=self.view.window.bounds;
                     }];
    
    [[uiapplication sharedapplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];


评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。