Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- 이미지
- rxswift
- Archive
- Swift
- 개발자
- Notification
- MacOS
- error
- window
- UIButton
- Realm
- 한글
- SwiftUI
- iOS16
- darkmode
- IOS
- geofencing
- 웹뷰
- Session
- github
- Git
- view
- appstore
- JPA
- FLUTTER
- Apple
- Xcode
- mac
- Firebase
- Code
Archives
- Today
- Total
목록NSCache (1)
EEYatHo 앱 깎는 이야기

UIImageView 이미지 다운로드 구현 Placeholder Image 지원 Image 넣는 부분은 main queue로 작업 외부 라이브러리 없이 URLSesstion dataTask 사용 extension UIImageView { func imageDown(urlStr: String, placeholderImage: UIImage? = nil) { func _setImage(image: UIImage?) { DispatchQueue.main.async { [weak self] in self?.image = image } } // 캐싱 체크 if let image = ImageCacheManager.shared.getImage(urlStr) { _setImage(image: image) return..
iOS, Swift/Feature
2022. 6. 21. 12:23