I just want to enable/disable the status bar per view controller (some view full screen, some not) I've been several times through all the post related to the status bar 20 pixels issue, but still have the problem, especially on iOS5.0 (some trick worked on older iOS version): Here is the problem definition:
| |||
show 2 more comments Was this post useful to you? |
1 | Use the following method in viewWillAppear of view controller to which you would like to display StatusBar.
Declare one BOOL variable to indicate whether status bar is hidden or not while view is loaded in view controller which you would like to hide status bar and set its value to NO.
Then add the following code in viewWillAppear of view controller(Status Bar is hidden in this view)
|
'iOS' 카테고리의 다른 글
테더링 바 제거 방법 일단 임시 (0) | 2012.09.17 |
---|---|
toolbar 배경 이미지 적용 방법 (0) | 2012.09.17 |
iOS 프로그래밍 팁 - 3 StatusBar 감추기 (0) | 2012.09.13 |
UIImageView 터치 이벤트 (0) | 2012.09.13 |
아이폰 서클(circle 또는 wheel) 메뉴 (0) | 2012.09.13 |
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
And also design view according to the statusbar's hidden status ie. If statusbar is hidden I design my View with no statusbar in it. :) – Wolvorin Aug 9 at 9:37