본문 바로가기

Weekoding

검색하기
Weekoding
프로필사진 Still Coding In After Hours...   iOS / Swift

  • 분류 전체보기 (32)
    • 공부 노트(Swift) (28)
    • 개발 노트 (0)
    • 그 외 (1)
Guestbook
Recent Posts
Tags
  • Enterprise
  • cgrect
  • Label
  • SNS로그인
  • Swift
  • AppleLogin
  • CAGradientLayer
  • property observer
  • CGColor
  • CALayer
  • Debugging
  • SnapKit
  • CornerRadius
  • SceneDelegate
  • SignInWithApple
  • lifecycle
  • property
  • Structure
  • oauth
  • xcode
  • Console
  • NSAttributedString
  • Inheritance
  • 프로퍼티옵저버
  • ios
  • Assets
  • 모바일개발
  • TextView
  • Lazy
  • UIView
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록UIView (1)

Weekoding

[Swift] UIView와 CALayer

Interface Builder를 사용하거나 Code를 이용하여 화면을 그릴 때, UIView가 그 주인공이 된다. 이런 저런 코드를 찾아보다 보면 CALayer라는 개념도 발견하게 될 것일터. 두 객체에 대한 속성 모두 분명히 우리가 보이는 화면에 적용이 되는 모양인데.... 둘은 무슨 차이일까?? /* 신기하게도, View에 적용하는 backgroundColor는 UIColor를 받지만, Layer에 적용하는 backgroundColor는 CGColor를 받는다. UIColor와 CGColor 차이점은 다음 시간에.. */ self.view.backgroundColor = .blue self.view.layer.backgroundColor = .init(red: 0, green: 102, blue: ..

공부 노트(Swift) 2023. 1. 24. 23:42
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바