[IOS] #1 Content Priority Ambiguity

East Silver·2021년 12월 15일
0

Content Priority Ambiguity

  • Content Hugging Priority
    우선순위가 높으면 유지, 낮으면 늘어난다
    늘어난다 == 당겨진다 == 커진다 라고 이해하기!
  • Content Compression Cesistance Priority(압축에 대한 저항)
    우선순위가 높으면 유지, 낮으면 줄어든다
    밀린다 == 찌그러진다 == 작아진다 라고 이해하기!

결론적으로,
두 오브젝트 중 하나가 커져야하는 상황 -> Hugging priority
두 오브젝트 중 하나가 작아져야하는 상황 -> Resistance priority

UIKIT

UIView

UIViewController

profile
IOS programmer가 되고 싶다

0개의 댓글