Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[UI/UICommon] use the correct parameter type UIStatusBarAnimation ins…
Browse files Browse the repository at this point in the history
…tead of BOOL
  • Loading branch information
dlackty committed Jun 6, 2010
1 parent fc72c93 commit daaf0ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Three20UI/Sources/TTPostController.m
Expand Up @@ -142,7 +142,7 @@ - (void)showKeyboard {
_originalStatusBarHidden = app.statusBarHidden;
if (!_originalStatusBarHidden) {
#if __IPHONE_3_2 && __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED
[app setStatusBarHidden:NO withAnimation:YES];
[app setStatusBarHidden:NO withAnimation:UIStatusBarAnimationSlide];
#else
[app setStatusBarHidden:NO animated:YES];
#endif
Expand All @@ -156,7 +156,7 @@ - (void)showKeyboard {
- (void)hideKeyboard {
UIApplication* app = [UIApplication sharedApplication];
#if __IPHONE_3_2 && __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED
[app setStatusBarHidden:_originalStatusBarHidden withAnimation:YES];
[app setStatusBarHidden:_originalStatusBarHidden withAnimation:UIStatusBarAnimationSlide];
#else
[app setStatusBarHidden:_originalStatusBarHidden animated:YES];
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Three20UICommon/Sources/UIViewControllerAdditions.m
Expand Up @@ -294,7 +294,7 @@ - (void)delayDidEnd {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)showBars:(BOOL)show animated:(BOOL)animated {
#if __IPHONE_3_2 && __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED
[[UIApplication sharedApplication] setStatusBarHidden:!show withAnimation:animated];
[[UIApplication sharedApplication] setStatusBarHidden:!show withAnimation:animated ? UIStatusBarAnimationFade : UIStatusBarAnimationNone];
#else
[[UIApplication sharedApplication] setStatusBarHidden:!show animated:animated];
#endif
Expand Down

0 comments on commit daaf0ab

Please sign in to comment.