alexiscn / WXNavigationBar

Handle UINavigationBar like WeChat. Simple and easy to use.
https://github.com/alexiscn/WXNavigationBar
MIT License
133 stars 20 forks source link

有没有设置状态栏前景色的方法或者属性呢 #4

Closed chinghoi closed 4 years ago

chinghoi commented 4 years ago

我的页面结构里用到了 UITabBarController, UInavigaionController, 设置这个非常的麻烦,希望能提供这个方法用来设置它,感谢库作者

alexiscn commented 4 years ago

You can try wx_titleTextAttributes.

override var wx_titleTextAttributes: [NSAttributedString.Key: Any]? {
    return [.foregroundColor: UIColor.red]
}
chinghoi commented 4 years ago

可能我没有表述清楚,是 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.

alexiscn commented 4 years ago

Using preferredStatusBarStyle not working? Can you provide a demo and what effect do you want.