IOS 개발

[iOS] struct UIEdgeInsets

0miming 2020. 3. 31. 18:50

UIEdgeInsets

struct UIEdgeInsets

 

요약

뷰의 삽입 거리(간격)

Summary

The inset distances for views.

 

Declaration

struct UIEdgeInsets

 

 

토론

모서리 삽입 값은 사각형에 적용되어 해당 사각형으로 표시되는 영역을 축소하거나 확장합니다. 일반적으로 가장자리 삽입은 뷰 레이아웃 중에 뷰의 프레임을 수정하는 데 사용됩니다. 양수 값을 지정하면 프레임이 지정된 양만큼 삽입되거나 축소됩니다. 음수 값을 지정하면 지정된 양만큼 프레임이 시작되거나 확장됩니다.

init (top : left : bottom : right :) 및 0을 참조하십시오.

Discussion

Edge inset values are applied to a rectangle to shrink or expand the area represented by that rectangle. Typically, edge insets are used during view layout to modify the view’s frame. Positive values cause the frame to be inset (or shrunk) by the specified amount. Negative values cause the frame to be outset (or expanded) by the specified amount.

See also init(top:left:bottom:right:) and zero.

 

 

 

[참조 : Open in Developer Documentation]