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.
I found a solution to achieve moving status bar.
Thanks to this question and answer which I upvoted for, I can change the statusBar's frame while scrolling like below:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
NSArray *windows = [[UIApplication sharedApplication] FEX_windows];
for (UIWindow *window in windows) {
if ([window isKindOfClass:NSClassFromString(@"UIStatusBarWindow")]) {
CGRect frame = window.frame;
frame.origin.y -= 5;
window.frame = frame;
}
}
}