在我的iPad应用程序中,我有一个应用程序设置视图。其中一个选项允许用户切换界面配色方案。设置视图通过segue加载到一个独立的视图控制器,而不是我的“主”应用程序的窗口。
当他们选择一种新颜色时,我切换colorSchemeColor变量并执行以下操作:
// set the colors and refresh the view
[[UINavigationBar appearance] setBarTintColor:colorSchemeColor];
[[UIToolbar appearance] setBarTintColor:colorSchemeColor];
[[UITabB