我刚刚更新到最新的 Xamarin.iOS 4.10.0 和 xCode5,用于开发适用于 iOS7 的应用程序。
在 iOS7 中,现在 UINavigationBar
的色调颜色不是使用 Tint color 设置的,而是使用 BarTintColor 设置的。所以如下:
NavigationBar.TintColor = UIColor.Red;
对 ios7 没有任何作用(在 ios6 中它确实改变了顶部栏的颜色)。
如何使用 iOS7 的单点触控更改 UINAvigationBar
颜色?我什至尝试通过 xCode5 进行更改,但似乎效果不佳
最佳答案
来自Apple doc :
iOS7: Use tintColor to tint bar button items. Use barTintColor to tint the bar background.
iOS6: Use tintColor to tint the bar background.
在单点触摸中翻译为:TintColor
和 BarTintColor
关于xamarin.ios - 在 iOS7 的单点触控中设置 UINavigationBar 色调颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19753990/