如何从Appdelegate类中的Storyboard获取全局色调颜色? 这两种方法都不起作用:
UISwitch.Appearance.OnTintColor = Windows.TintColor;
UISwitch.Appearance.OnTintColor = UIApplication.SharedApplication.Delegate.GetWindow().TintColor;
我知道如何在控制器中获得色彩:
var tintColor = View.TintColor;
但我只是想在视图控制器之外的Storyboard中使用全局色调颜色,而不想在代码中设置颜色。