【问题标题】:Xamarin - Physical device deploy Color not correctXamarin - 物理设备部署颜色不正确
【发布时间】:2021-10-08 11:58:58
【问题描述】:

我目前在 Windows 上使用 Visual Studio Community(连接到 Mac)和 Xamarin.IOS 15.0.0.8(安装在 MAC 上的相同版本)。 将 Visual Studio 更新到版本 16.11.4 并将 xamarin 表单应用程序部署到我的物理设备(Iphone X)后,我可以注意到: Shell.BackgroundColor 不是蓝色的,汉堡图标菜单也没有出现。

如果我将相同的应用程序部署到 android 模拟器,一切正常。 I attach this image to explain

你怎么看?

【问题讨论】:

    标签: iphone xamarin xamarin.forms


    【解决方案1】:

    根据我的查询,ios15 中似乎已经更新了uikit。默认颜色为透明。

    我在xxx.IOS->Appdelegate.cs的FinishedLaunching方法中添加:

    UINavigationBar.Appearance.BackgroundColor = UIColor.Blue;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-27
      • 1970-01-01
      相关资源
      最近更新 更多