UIControl

w0308h 2월 4일 PM 06:43 3 0
w0308h Profile Image Level 9
2 #TIL

  • 컨트롤
    Untitled
    • 컨트롤들은 정보를 표시하고 사용자에게 반응도 하는 뷰들을 포함
    • UIControl 클래스(UIView의 subclass)로부터 상속 받았으며 버튼, 슬라이더, textField 등 포함
    • UIControl.State
      • normal

        static var normal: UIControl.State
        
        
      • highlighted

        static var highlighted: UIControl.State
        
        
      • disabled

        static var disabled: UIControl.State
        
        
      • selected

        static var selected: UIControl.State
        
        
      • focused

      • application

      • reversed

  • 디스플레이 뷰
    • 디스플레이 뷰는 시각적인 반응을 제공한다는 점에서는 컨트롤과 비슷하지만 사용자 상호작용에 반응하지 않음
    • UILabel, UIImageView 등
댓글