代码之家  ›  专栏  ›  技术社区  ›  doxsi

Xamarin:避免在iOS导航栏上使用更轻的效果

  •  0
  • doxsi  · 技术社区  · 6 年前

    在我的自定义NavigationRender中,我需要一个图像作为导航栏的背景。

    我用这句话来做:

        this.NavigationBar.BarTintColor = UIColor.FromPatternImage(UIImage.FromFile("myImmage"));
        this.NavigationBar.Translucent = false;
    

    它可以工作,但由于导航中添加了模糊效果,图像看起来比原始图像更亮。

    有办法避免吗?

    0 回复  |  直到 6 年前