StatusBar.hide() ruins the layout

I resolved this issue by myself. I guess it was the fault of the documentation.
When we want to use Ionic as fullscreen mode, we have to write these code.

$ionicPlatform.ready ->
  ionic.Platform.fullScreen()
  if window.StatusBar
    StatusBar.hide()

Sorry, it’s coffee script but it is same thing in Javascript, call ionic.Platform.fullScreen() and add fullscreen css class in the body tag.

I could not know this is the correct solution of fullscreen mode in iOS. But I could fix this issue.

3 Likes