반응형
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다.
imageView.animationImages = [
UIImage(named: "image1")!,
UIImage(named: "image2")!,
UIImage(named: "image3")!,
UIImage(named: "image4")!,
UIImage(named: "image5")!,
UIImage(named: "image6")!
]
imageView.animationDuration = 0.3
imageView.animationRepeatCount = 1
반응형
'iOS > 코드조각' 카테고리의 다른 글
[iOS, Swift] UIView 애니메이션 효과 (0) | 2022.08.21 |
---|---|
[iOS, Swift] UIView 흔들림 효과 주기 (0) | 2022.08.21 |
[iOS, Swift] ImageView ContentMode 특징 (Scale to Fill, Aspect Fit, Aspect Fill) (0) | 2022.08.21 |
[iOS, Swift] UIImageView 원으로 만들기 (0) | 2022.08.21 |
[iOS, Swift] UIImagePickerController 이미지 선택 화면 띄우기 (0) | 2022.08.21 |