gpt4 book ai didi

ios - 了解自动调整属性和 mask

转载 作者:行者123 更新时间:2023-11-29 13:09:01 26 4
gpt4 key购买 nike

在图片方面,UIViewAutoresizingNone 的值在 View 上设置时对应于哪个图片?

enter image description here

最佳答案

你是对的,你显示的图像等同于 UIViewAutoresizingNone

Autosizing,您可以从 Interface Builder 中看到,类似于,

enter image description here

虽然以编程方式这些支柱的行为与上图“相反”,如

enter image description here

以下是 AutoSizingMask 的一些示例 - 以编程方式与 XIB 对比。

  • (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin |UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin) 等同于

enter image description here

  • UIViewAutoresizingNone 等同于

enter image description here

  • (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth) 等同于

enter image description here

  • (UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin)

enter image description here

关于ios - 了解自动调整属性和 mask ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17857949/

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