nativescript - 无法更改 iOS NativeScript 中的状态栏颜色
问题描述
我正在尝试将 iOS 中状态栏的颜色文本更改为白色。这是我到目前为止所做的:
import { topmost } from "ui/frame";
export class HomeComponent implements OnInit {
constructor() {
}
ngOnInit()
{
if(app.ios)
{
var navBar = topmost().ios.controller.navigationBar;
navBar.barStyle = 1;
}
}
}
但这似乎不起作用。有什么建议么 ?
解决方案
推荐阅读
- html - 使用 Thymeleaf HTML 在 PDF 的所有页面中的页码和日期时间的页脚
- unity3d - 错误操作碰撞
- html - 尝试以响应方式设置此按钮的样式
- ios - Web Socket Connection - iOS Swift 中的连接被拒绝/失败 - Starscream/RxStarscream
- javascript - React.createElement:类型无效 - Electron-React-Boilerplate
- compiler-construction - 使用实时变量分析计算工作清单
- algorithm - 实现 A* 算法的正确方法是什么?我们是否更新 closedSet 中的节点?
- r - 如何获得每n个值的移动平均值
- amazon-web-services - 带有 aws codeartifact 和 MVN 的 buildspec
- matlab - 图像处理中的信号转换