|
|
11 yıl önce | |
|---|---|---|
| keychain | 11 yıl önce | |
| keychain.xcodeproj | 11 yıl önce | |
| keychainTests | 11 yıl önce | |
| Default-568h@2x.png | 11 yıl önce | |
| LICENSE | 11 yıl önce | |
| README.md | 11 yıl önce |
This class was written to provide a simple way of writing to and reading from a Keychain.
Copy TegKeychain.swift into your project.
TegKeychain.set("my key", value: "hello world")
TegKeychain.getString("key 1")
TegKeychain.delete("my key")
TegKeychain.clear()
In addition to String one cart write and read NSData objects.
TegKeychain.set("my key", value: nsDataObject)
TegKeychain.getData("my key")
The code is based on this gist: