What is the difference between NSLayoutAttributeBa

2020-06-08 12:46发布

The Apple docs usefully state that NSLayoutAttributeBaseline aligns to "The object’s baseline". What's a baseline? How is that different from the bottom?

2条回答
狗以群分
2楼-- · 2020-06-08 13:25

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.

查看更多
放荡不羁爱自由
3楼-- · 2020-06-08 13:41

NSLayoutAttributeBaseline

NSLayoutAttributeBottom

查看更多
登录 后发表回答