mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-07-08 23:09:02 +07:00
Update README.md
This commit is contained in:
25
README.md
25
README.md
@ -31,6 +31,8 @@
|
|||||||
- [Location Manager](#Location-Manager)
|
- [Location Manager](#Location-Manager)
|
||||||
- [API](#API)
|
- [API](#API)
|
||||||
- [JSON](#JSON)
|
- [JSON](#JSON)
|
||||||
|
- [User Default](#User-Default)
|
||||||
|
- [Core Data](#Core-Data)
|
||||||
- [Third Party Library](#Third-Party-Library)
|
- [Third Party Library](#Third-Party-Library)
|
||||||
- [GCD](#GCD)
|
- [GCD](#GCD)
|
||||||
- [DispatchQueue](#DispatchQueue)
|
- [DispatchQueue](#DispatchQueue)
|
||||||
@ -408,6 +410,29 @@ unwrappedData -> Input actual data from file or server
|
|||||||
|
|
||||||
### JSONSerialization
|
### JSONSerialization
|
||||||
|
|
||||||
|
|
||||||
|
## User Default
|
||||||
|
|
||||||
|
The UserDefaults class provides a programmatic interface for interacting with the defaults system. Check [Apple Document](https://developer.apple.com/documentation/foundation/userdefaults) for more info
|
||||||
|
|
||||||
|
UserDefault has to have **key-value** pair
|
||||||
|
|
||||||
|
### How to find documentDirectory
|
||||||
|
|
||||||
|
Put this line of code inside of your project
|
||||||
|
```swift
|
||||||
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||||
|
print(NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last ?? "")
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
simply move into that path and you can find the documentDirectory of your Application
|
||||||
|
> if Library is not shown up, just do **Shift + Command + .** to show hidden files in your folder
|
||||||
|
|
||||||
|
## Core Data
|
||||||
|
|
||||||
|
|
||||||
### Various API Site
|
### Various API Site
|
||||||
- [rapidAPI](https://www.rapidapi.com)
|
- [rapidAPI](https://www.rapidapi.com)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user