status bar switching sample in iOS7 and iOS6.1 before.