MMDrawerController icon indicating copy to clipboard operation
MMDrawerController copied to clipboard

Adding status bar animation

Open Ded77 opened this issue 11 years ago • 9 comments

Adding status bar animation. This will close #167.

Ded77 avatar Feb 13 '14 13:02 Ded77

"Fails" when changing center vc with full close animation:

[self.mm_drawerController setCenterViewController:nav withFullCloseAnimation:YES completion:nil];

hbmtw avatar Feb 26 '14 02:02 hbmtw

Thanks hbmtw. It should be ok now.

Ded77 avatar Feb 28 '14 15:02 Ded77

Perfect. Thanks.

If you want, it could also be fixed for the bouncing animation also:

[self.mm_drawerController bouncePreviewForDrawerSide:MMDrawerSideLeft completion:nil];

hbmtw avatar Feb 28 '14 20:02 hbmtw

This used to work perfectly, but with xCode 7, if you're using your mouse and you move the side menu between open and close, the status bar won't stay aligned with the navigation bar. @Ded77 @hbmtw @mkruus Any suggestions on how I can fix this?

thomasbaldwin avatar Nov 26 '15 16:11 thomasbaldwin

Here's a screen recording of this in action. This didn't used to happen with the demo, which leads me to assume it's something with xCode 7 or me upgrading to El Capitan

https://youtu.be/hX4namxN4G0

thomasbaldwin avatar Nov 27 '15 06:11 thomasbaldwin

It turns out it's just the new iOS simulator being laggy with the status bar. it works fine on the phone

thomasbaldwin avatar Nov 28 '15 05:11 thomasbaldwin

@thomasbaldwin Hello, great if it is just a simulator glitch. But remember, don't use this code in app that will be submitted on the AppStore. We use private API in this pull request.

Ded77 avatar Feb 10 '16 15:02 Ded77

Hey @Ded77, any idea how GroupMe is doing it if they're not using the private API function?

cze7t

thomasbaldwin avatar Feb 11 '16 18:02 thomasbaldwin

@thomasbaldwin hummm, I think they are using private API ! As far as I know, the only safe way to do this is to make a screenshot of the screen and animate this screenshot eg. But that's not what they do (the clock is always up to date...).

For me, the proper way to do this is to hide the status bar with an animation cf., like in the Slack app, but maybe that's not really what you want.

Ded77 avatar Feb 11 '16 22:02 Ded77