On iOS 7, make the statusbar overlay or not overlay the WebView
On iOS 7, set to false to make the statusbar appear like iOS 6. Set the style and background color to suit using the other functions.
import { StatusBar } from "@yl/super-jssdk"
StatusBar.overlaysWebView(optional)
1、只支持 iOS
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| optional | Object | 否 | 选填参数 |
optional
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| isOverlay | boolean | 否 | 是否要覆盖,默认为 true |
| 参数 | 类型 | 作用 |
|---|---|---|
| resolve() | Function | 成功回调 |
| reject(err) | Function | 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"} |
StatusBar.overlaysWebView()