Xamarin iOS FlyoutNavigation菜单UIImage质量很差

时间:2017-11-29 07:53:07

标签: ios xamarin xamarin.ios navigation uiimage

我的FlyoutNavigation菜单有问题。我有这样的代码:

    _navigation.NavigationRoot = new RootElement("Navigation")
    {
                        new Section(new UIView(){BackgroundColor = UIColor.FromRGBA(0,0,0,0)}, new UIView(){BackgroundColor = UIColor.FromRGBA(0,0,0,0)})
                        {
                            new StyledStringElement ("Home")
                            {
                                BackgroundColor = UIColor.FromRGBA(255, 233, 203, 255),
                                TextColor = UIColor.Black,
                                Font = UIFont.FromName("Georgia", 16f),
                                Image = UIImage.FromBundle("Icons/ic_home")
                            }

... another StyledStringElemets

        }

但是我的问题是UIImage在我的菜单中有很差的质量我可以在真实设备上看到像素(我在我的iPhone SE上尝试过)在模拟器上的问题iPhone SE并不是那么糟糕但在真实设备上却是如此。我将所有菜单图标设置为25x25 px png。

这个导航中的UIImage如何提供高质量的解决方案?

0 个答案:

没有答案