如何在使用shell时更改iOS中状态栏的颜色


我使用的是Xamarin Forms v4.0.0.425677。当我使用shell时,我将BackgroundColor设置为#ff3A2E,但它在iOs中不起作用。

<code>
public AppShell()
{
    InitializeComponent();
    SetTabBarBackgroundColor(this, Color.FromHex("#D9D9D9"));
    SetTabBarTitleColor(this, Color.FromHex("#FF3A2E"));
    SetTabBarUnselectedColor(this, Color.FromHex("#FF3A2E"));
    SetBackgroundColor(this, Color.FromHex("#FF3A2E"));
}
</code>

看起来像是有个覆盖层。

转载请注明出处:http://www.cxyjjj.com/article/20230526/1631105.html