Fix an orientation bug in iOS 8, restore tab bar hidden to last state.