gpt4 book ai didi

ios - 如何在launch.storybord + xamarin.forms中将图像设置为背景

转载 作者:行者123 更新时间:2023-12-01 18:38:16 27 4
gpt4 key购买 nike

在最近发布的 xamarin 启动屏幕中,可以从 Storyboard 设计,而不是我们根据 wise 添加所有初始屏幕图像的旧方法。

https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/

从此链接了解如何使用 Storyboard 设置启动屏幕。

所以我的问题是如何将图像设置为 Storyboard 的背景不想要背景颜色。

我需要图像作为背景,我可以在上面放置 Logo 图像和标签。

那么有可能吗?如果是,那么如何。

请帮忙。

see here

最佳答案

您需要设置top,bottom,leading,trailing对 imageView 的约束。

  • 选择 Constraint edit mode ,并单击两次以显示可拖动以设置约束的一侧的点。

    enter image description here
  • 将约束值修改为 0(在属性菜单中)。

    enter image description here
  • 对四个约束做同样的工作。

    enter image description here

  • 引用 Auto Layout with the Xamarin Designer for iOS

    关于ios - 如何在launch.storybord + xamarin.forms中将图像设置为背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47711372/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com