[iOS, Swift] UIImageView 원으로 만들기
[iOS, Swift] UIImageView 원으로 만들기
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. imageView.layer.cornerRadius = imageView.frame.height / 2 imageView.layer.shouldRasterize = true imageView.clipsToBounds = true
bksesame.tistory.com
[iOS, Swift] ImageView ContentMode 특징 (Scale to Fill, Aspect Fit, Aspect Fill)
[iOS, Swift] ImageView ContentMode 특징 (Scale to Fill, Aspect Fit, Aspect Fill)
ContentMode로 Scale to Fill, Aspect Fit, Aspect Fill 등이 있습니다. 특별한 역할을 하는 위의 세가지 종류에 대하여 설명하겠습니다. Scale to Fill은 이미지뷰의 사이즈에 맞춰 이미지를 늘립니다. 이 때 해..
bksesame.tistory.com
[iOS, Swift] ImageView 애니메이션 구현하기
[iOS, Swift] ImageView 애니메이션 구현하기
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. imageView.animationImages = [ UIImage(named: "image1")!, UIImage(named: "image2")!, UIImage(named: "image3")!, UIImage(named: "image4")!,..
bksesame.tistory.com
'iOS > iOS' 카테고리의 다른 글
[iOS, Swift] UIGesture 기능 모음 (0) | 2022.08.25 |
---|---|
[iOS, Swift] UIView 기능 모음 (0) | 2022.08.21 |
[iOS, Swift] LocalNotification 기능 모음 (0) | 2022.08.21 |
[iOS, Swift] UILabel 속성 모음 (0) | 2022.08.20 |
[iOS, Swift] 초기 프로젝트 세팅 (MVC, UIKit) (0) | 2022.06.02 |