NSLayoutAttribute "Top" 和 "TopMarigin" 之间的区别
Difference between NSLayoutAttribute "Top" and "TopMarigin"
谁能解释一下 NSLayoutAttributeTopMargin
和 NSLayoutAttributeTop
之间的区别,我用谷歌搜索了但没有找到任何明确的解决方案。
NSLayoutAttributeTop 与容器顶部对齐。 NSLayoutTopMargin 与容器的上边距对齐,在 iOS8 上默认情况下它比容器顶部低 8 磅。
有关边距的详细说明,请参阅此答案:What is "Constrain to margin" in Storyboard in Xcode 6
谁能解释一下 NSLayoutAttributeTopMargin
和 NSLayoutAttributeTop
之间的区别,我用谷歌搜索了但没有找到任何明确的解决方案。
NSLayoutAttributeTop 与容器顶部对齐。 NSLayoutTopMargin 与容器的上边距对齐,在 iOS8 上默认情况下它比容器顶部低 8 磅。
有关边距的详细说明,请参阅此答案:What is "Constrain to margin" in Storyboard in Xcode 6