Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 InAppSettingsKit 视图的背景颜色更改为黑色,我还想将导航栏颜色更新为深灰色。但是,我似乎找不到有关如何执行此操作的任何详细信息。
我考虑过只是进入 XIB 文件并手动更改它,但这似乎不是正确的方法。请问有人可以帮我吗?
我假设你想定位比 5.0 更早的 iOS 版本。(对于 5.0 及更高版本,您可以利用新的 UIAppearance 东西。)
如果只是更改导航栏和条纹 tableView 背景,这很容易:我建议+[UIColor groupTableViewBackgroundColor]使用类别覆盖UIColor以返回黑色。导航栏更容易,因为 IASK 应该从导航控制器继承导航栏。
+[UIColor groupTableViewBackgroundColor]
UIColor
如果您的需求更复杂,您可能想要更改 XIB。