What is the difference between NSLayoutAttributeBaseline and NSLayoutAttributeBottom?

馋奶兔 提交于 2019-12-04 16:23:41

问题


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



来源:https://stackoverflow.com/questions/14883439/what-is-the-difference-between-nslayoutattributebaseline-and-nslayoutattributebo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!