2016-07-24 5 views
0

내 이오닉 뷰에 맨 위에 공백이 없다는 문제점이 있습니다. 따라서 iOS 상태 표시 줄은 이온 헤더 위에 있습니다. 불행히도 아직 안드로이드에서 테스트하지 못했습니다.ionic 2의 내용에 대한 iOS 상태 표시 줄

enter image description here 내 HTML 코드입니다 :

<ion-header> 
    <ion-navbar> 
    <ion-buttons start> 
     <button menuToggle> 
     <ion-icon name="menu"></ion-icon> 
     </button> 
    </ion-buttons> 
    <ion-title>spots</ion-title> 
    <ion-buttons end> 
     <button menuToggle> 
     <ion-icon name="menu"></ion-icon> 
     </button> 
    </ion-buttons> 
    </ion-navbar> 
</ion-header> 

과 app.ts이 :

initializeApp() { 
    this.platform.ready().then(() => { 
     // Okay, so the platform is ready and our plugins are available. 
     // Here you can do any higher level native things you might need. 
     StatusBar.styleDefault(); 
    }); 
    } 

답변

0

당신은 아래에 다음 코드를 추가해야 the app.module

IonicModule.forRoot(MyApp, { 
     platforms: { 
      ios: { 
       statusbarPadding: true, 
       tabsHideOnSubPages: true 
      } 
      } 
     }) 

이것은 최신 ionic 3.2.0

에 대한 수정 프로그램입니다.