xcode autoresize = RM+BM 是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23249523/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does autoresize = RM+BM mean?
提问by brainray
I get this when using the Xcode debugging console with this line:
使用带有以下行的 Xcode 调试控制台时,我得到了这个:
po [[UIWindow keyWindow] recursiveDescription]
Then I get back lines with the recursive description like this
然后我得到像这样递归描述的行
<UILabel: 0xb0b8170; frame = (138 106; 200 15); text = 'Distance'; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <CALayer: 0xb0b8220>>
What does "autoresize = RM+BM" and is there a place I can lookup the meaning of the letters? I also saw something like this "autoresize = LM+W+RM+TM+H+BM".
“autoresize = RM+BM”是什么意思,有什么地方可以查到字母的意思吗?我还看到了类似这样的“自动调整大小 = LM+W+RM+TM+H+BM”。
回答by David Berry
autoresize indicates which bits have been set in the autoresizingMask:
autoresize 指示在 autoresizingMask 中设置了哪些位:
RM = UIAutoresizingFlexibleRightMargin
BM = UIAutoresizingFlexibleBottomMargin
The others follow a similar abbreviation syntax.
其他的遵循类似的缩写语法。