2016-03-02 57 views
0

我是Kendo UI的新手。在使用angularJS的Kendo UI中,如何避免iOS 7及以上狀態欄和導航欄的重疊

我正在使用AngularJS和Kendo UI開發iOS應用程序。我應該如何避免統計欄和導航欄的重疊?

這裏是我如何添加導航欄,但它被用統計重疊吧

<body kendo-mobile-application k-hash-bang="true" ng-app="MobileAppModule" platform="'ios7'"> 
    <kendo-mobile-layout k-id="'default'"> 
    <kendo-mobile-header > 
     <kendo-mobile-nav-bar> 
      <kendo-view-title></kendo-view-title> 
     </kendo-mobile-nav-bar> 
    </kendo-mobile-header> 
</kendo-mobile-layout> 


<kendo-mobile-view id="abc" k-title="'Home'" k-layout="'default'"> 
    Hello world 
</kendo-mobile-view> 

  1. 我應該如何避免在iOS 7及以上的統計欄和導航欄的重疊?
  2. 如何設置狀態欄的顏色?

我知道如何使用標記語言的鏈接做到這一點:你所提到的http://www.telerik.com/blogs/everything-hybrid-web-apps-need-to-know-about-the-status-bar-in-ios7

回答

1

一切都可以使用cordova-plugin-statusbar

<gap:plugin name="cordova-plugin-statusbar" source="npm"/> 

<preference name="StatusBarOverlaysWebView" value="false" /> 

<preference name="StatusBarBackgroundColor" value="#000000" /> 
+0

我加入它,它config.xml文件,但仍然狀態來完成酒吧在導航欄上重疊。 – Rohit

+0

你可以顯示config.xml嗎? – Akis