Search code examples
iphoneiosobjective-cios7uistatusbar

want to Implement Sliding side menu with sliding status bar also. in iOS


I am interested to implement left side menu in my application I have used NVSlideMenuController for it. and it works fine.

But I want to modify it. I want to slide status bar with contentViewController and don't want status bar on MenuViewController.

currently it will look like below image

enter image description here

and I want to same as below image

enter image description here

Thanks In advance


Solution

  • You can try to turn off your 3G on second image, you will notice that statusBar didn't update.

    It seems like a new api in iOS7

    [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:NO];
    

    This may be the same question you ask, and there are a demo to show what you want.

    Moving status bar in iOS 7