Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone : HOWTO move status bar with pan gesture

Like Instagram - EXPLORE Tab, when I scroll the content, the status bar moves as well.

Always called FullScreenScroll, like here, when the user scrolls the tableView, the NavigationBar & TabBar are scrolled to show or hide at the same time.

My problem is, not only NavigationBar & TabBar, I also want to make the StatusBar follow the finger move.

Finally, it is really fullscreen.

enter image description here

enter image description here

enter image description here

like image 359
Jason Lee Avatar asked Aug 06 '14 12:08

Jason Lee


People also ask

What is blue bar at top of iPhone screen?

If you see blue, green, red, or purple in the status barYour iPhone is using Screen Mirroring, or an app is actively using your location. Your iPhone is either recording sound or your screen. Your iPhone is using SharePlay to share content.


1 Answers

This is the best solution you can find to get status bar window

UIWindow *statusBarWindow = (UIWindow *)[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"];

Then change the frame

like image 65
Ivan Vavilov Avatar answered Oct 29 '22 02:10

Ivan Vavilov