1. Hiding and Showing the Status Bar WITH ANIMATION.
CGRect appFrame = [[UIScreen mainScreen] applicationFrame]; [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide]; [UIView animateWithDuration:0.25 animations:^{ self.navigationController.navigationBar.frame = self.navigationController.navigationBar.bounds; self.view.window.frame = CGRectMake(0, 0, appFrame.size.width, appFrame.size.height); }];
2. Hiding and Showing the Status Bar WITHOUT ANIMATION.
[UIApplication sharedApplication].statusBarHidden = NO; [self setNeedsStatusBarAppearanceUpdate];
If you find this tutorial as a helpful one, please subscribe and share.
Post a Comment