ios - autoresize = RM+BM 是什么意思?

标签 ios xcode debugging autolayout

我在使用带有此行的 Xcode 调试控制台时得到了这个:

po [[UIWindow keyWindow] recursiveDescription]

然后我得到像这样的递归描述的行

<UILabel: 0xb0b8170; frame = (138 106; 200 15); text = 'Distance'; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <CALayer: 0xb0b8220>>

“autoresize = RM+BM”是什么意思,有什么地方可以查询字母的意思吗?我还看到类似这样的内容“autoresize = LM+W+RM+TM+H+BM”。

最佳答案

autoresize 指示在 autoresizingMask 中设置了哪些位:

RM = UIAutoresizingFlexibleRightMargin
BM = UIAutoresizingFlexibleBottomMargin

其他的遵循类似的缩写语法。

关于ios - autoresize = RM+BM 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23249523/

相关文章:

iphone - iOS:AFNetworking:如果 token 过期则重复 block

iphone - 如何释放单例?

swift - 仅当键在字典中可用时才获取数据

ios - 如何从 fbsession 注销?

ios - 使用命令行工具发送命令以在 iOS 设备中启动应用程序

javascript - javascript中有没有办法获取对象的范围?

c++ - 实现无操作 std::ostream

ios - 如何在 UILabel 文本的开头将图像放在 UILabel 中?

ios - 一定分数后显示警报 View

debugging - 戈格兰 : debugging is grayed out