2
任何人都可以解釋NSLayoutAttributeTopMargin
和NSLayoutAttributeTop
之間的區別,我對它進行了搜索,但沒有找到任何明確的解決方案。NSLayoutAttribute「Top」和「TopMarigin」之間的區別
任何人都可以解釋NSLayoutAttributeTopMargin
和NSLayoutAttributeTop
之間的區別,我對它進行了搜索,但沒有找到任何明確的解決方案。NSLayoutAttribute「Top」和「TopMarigin」之間的區別
NSLayoutAttributeTop對齊到容器的頂部。 NSLayoutTopMargin與容器的頂部邊界對齊,默認情況下,iOS8上容器的頂部邊界比容器頂部低8個點。
查看此答案以獲取關於邊距的詳細說明:What is "Constrain to margin" in Storyboard in Xcode 6