The Apple docs usefully state that NSLayoutAttributeBaseline
aligns to "The object’s baseline". What's a baseline? How is that different from the bottom?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Baseline applies to views such as UILabel
. The baseline would be the position where the bottom of uppercase letters appear. For most other views (if not all others) the baseline and the bottom are the same.
回答2:
NSLayoutAttributeBaseline
NSLayoutAttributeBottom