반응형
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 | 31 |
Tags
- github
- subscript
- autolayout
- Android
- Realtime Database
- RxSwift
- LazyHStack
- SwiftLint
- Java
- swipe
- 문자열
- Swift
- gcd
- Apple
- Alamofire
- 다크모드
- 웹뷰
- UIScrollView
- SwiftUI
- Firebase
- string
- UITabBarController
- remote config
- Observable
- dictionary
- UIButton
- 라이트모드
- NavigationLink
- WebView
- ios
Archives
- Today
- Total
점진적 과부하 개발 블로그
Swift UserDefaults 값 초기화 본문
반응형
Swift UserDefaults 값 초기화
UserDefaults 값 초기화(모든 키 값 삭제)
for key in UserDefaults.standard.dictionaryRepresentation().keys {
UserDefaults.standard.removeObject(forKey: key.description)
}
dictionaryRepresentation() | Apple Developer Documentation
Returns a dictionary that contains a union of all key-value pairs in the domains in the search list.
developer.apple.com
반응형
'Swift' 카테고리의 다른 글
Swift WebView 로딩 애니메이션 적용하기 (0) | 2023.06.30 |
---|---|
Swift WebView 뒤로가기 제스처(스와이프) 권한 해제 (0) | 2023.06.28 |
Swift WebView 앱에서 자바스크립트 함수 호출하기 (0) | 2023.06.26 |
Swift NavigationController 뒤로가기 제스처 제거 (0) | 2023.06.10 |
Swift 버튼에서 함수 호출 addTarget (2) | 2022.09.09 |