First Baseline and Last Baseline Properties in UIStackView

ぐ巨炮叔叔 提交于 2019-12-05 14:01:30

问题


What effect does First Baseline and Last Baseline properties on the subviews of a UIStackView?

In fact, what does these property mean?


回答1:


Suppose you have a two-line text view (or field or label or button) and a three-line text view, and you add them to a horizontal stack view. Do you want to align their first lines, or their last lines? That's the difference.

.FirstBaseline:

.LastBaseline:

Note: I increased the vertical content hugging and compression resistance priorities to 1000 (required) to get this to work properly.



来源:https://stackoverflow.com/questions/33932846/first-baseline-and-last-baseline-properties-in-uistackview

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