Added iOS8 support for tabbar.

iOS 8 support....
Please insert spaces beside `else`.