Closed chinghoi closed 4 years ago
You can try wx_titleTextAttributes
.
override var wx_titleTextAttributes: [NSAttributedString.Key: Any]? {
return [.foregroundColor: UIColor.red]
}
可能我没有表述清楚,是 statusBarStyle的属性,请问下有没有修改这个的呢
------------------ 原始邮件 ------------------ 发件人: "alexiscn"<notifications@github.com>; 发送时间: 2020年6月26日(星期五) 晚上8:42 收件人: "alexiscn/WXNavigationBar"<WXNavigationBar@noreply.github.com>; 抄送: "chinghoi"<56465334@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [alexiscn/WXNavigationBar] 有没有设置状态栏前景色的方法或者属性呢 (#4)
You can try wx_titleTextAttributes. override var wx_titleTextAttributes: [NSAttributedString.Key: Any]? { return [.foregroundColor: UIColor.red] }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Using preferredStatusBarStyle
not working?
Can you provide a demo and what effect do you want.
我的页面结构里用到了 UITabBarController, UInavigaionController, 设置这个非常的麻烦,希望能提供这个方法用来设置它,感谢库作者