일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MSYS2
- 애플
- OSX
- 인증
- css
- otpkey
- kmip
- SWIFT
- SSL
- SwiftUI
- SSH
- WebAuthn
- Nodejs
- 앨범북
- apple
- openssl
- fido
- 2FA
- FIDO2
- 앱스토어
- OTP
- appres
- Android
- MYSQL
- git
- albumbook
- MFA
- Xcode
- 앱리소스
- 안드로이드
Archives
- Today
- Total
인디노트
UIImageView setImageWithURL 에 대한 clear cache 본문
소스 팁/Objective C, Swift, iOS, macOS
UIImageView setImageWithURL 에 대한 clear cache
인디개발자 2017. 8. 24. 10:52- (void)clearImageCache
{
[[NSURLCache sharedURLCache] removeAllCachedResponses];
[[AFImageDownloader defaultURLCache] removeAllCachedResponses];
[[[AFImageDownloader defaultInstance] imageCache] removeAllImages];
AFAutoPurgingImageCache *imageCache = [[AFAutoPurgingImageCache alloc] init];
[imageCache removeAllImages];
}
반응형
'소스 팁 > Objective C, Swift, iOS, macOS' 카테고리의 다른 글
iOS PhotoKit - 카메라 롤과 일반 앨범 (0) | 2017.12.31 |
---|---|
xcode 에서 앱스토어 앱 업로드 실패할 경우 대처 (0) | 2017.08.24 |
iOS - UIView 애니메이션 효과 (0) | 2017.07.10 |
xcode 의 시스템 변수 값 (0) | 2017.06.06 |
[iOS] NSMutableDictionary 상속, "method only defined for abstract class" (0) | 2017.04.04 |
Comments