일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Clean Code
- 애니메이션
- SWIFT
- clean architecture
- UITextView
- 리펙토링
- 클린 코드
- UICollectionView
- uiscrollview
- Protocol
- RxCocoa
- ribs
- 리팩토링
- Xcode
- 리펙터링
- ios
- Refactoring
- tableView
- map
- rxswift
- combine
- Observable
- MVVM
- 스위프트
- swiftUI
- uitableview
- swift documentation
- Human interface guide
- HIG
- collectionview
- Today
- Total
목록animationDuration (2)
김종권의 iOS 앱 개발 알아가기
animationImages로 gif 재생 방법 animationImages는 UIImageView의 프로퍼티이고 이미지 배열을 넣어서 duration, repeatCount를 설정한 후 startAnimating()으로 실행이 가능 * animationImages 자세한 개념은 이전 포스팅 글 참고 animationImages를 알면 연속으로 재생이 가능하기 때문에 gif파일을 불러와서 frameCount와 images 배열을 얻어내는것이 목적 파일을 읽어오는 방법은 애플의 ImageIO를 사용 ImageIO 관련 자세한 내용은 이전 포스팅 글 참고 ImageIO의 CGImageSource를 사용하면 frameCount와 cgImage 가져오기가 가능 예제 - gif 재생시키기 gif 이미지 준비 im..
animationImages 개념 UIImageView가 가지고 있는 UIImage 배열 값 animationImages은 UIImageView의 프로퍼티 @available(iOS 2.0, *) open class UIImageView : UIView { public init(image: UIImage?) ... open var animationImages: [UIImage]? // default is nil } 이 값을 사용하여 여러가지의 이미지들을 animationDuration동안 aimationRepeatCount만큼 반복해서 보여주기가 가능 duration, count 옵션을 설정한 후 startAnimating()하여 이미지들을 표출 ex) animationImages에 circle이미지와 ..