Youtube iOS app's status bar has a animation when user drags main view to the right to reveal the menu view. I've googled for a while but still do not know how to implement this animation. I'm writing a forum client (deploy target is iOS7) which has a side menu. The problem is the background color of menu is different from the color of front page's nav bar. See picture below.
It looks really bad when dragging the main view. The walk around I've done by now is to shrink the main view using CGAffineTransform gradually to let the whole status bar in menu view. See picture below.
I personally like youtube app way better. I've googled stuff like "how to change background color of status bar in iOS7". But all I got so far is that I can only use black and white color. Does anyone know how to implement it? Some hint or names of iOS technique used in Youtube is good enough. Thank you.

It looks really bad when dragging the main view. The walk around I've done by now is to shrink the main view using CGAffineTransform gradually to let the whole status bar in menu view. See picture below.

I personally like youtube app way better. I've googled stuff like "how to change background color of status bar in iOS7". But all I got so far is that I can only use black and white color. Does anyone know how to implement it? Some hint or names of iOS technique used in Youtube is good enough. Thank you.