https://github.com/expdev07/ebsystemstorage
Easy way to save small pieces of code in your application!
https://github.com/expdev07/ebsystemstorage
Last synced: about 1 year ago
JSON representation
Easy way to save small pieces of code in your application!
- Host: GitHub
- URL: https://github.com/expdev07/ebsystemstorage
- Owner: ExpDev07
- License: mit
- Created: 2016-04-05T09:21:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T09:39:37.000Z (almost 10 years ago)
- Last Synced: 2025-01-28T12:47:13.882Z (about 1 year ago)
- Language: Swift
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EBSystemStorage
Easy way to save small pieces of code in your application! This is designed for Swift :D
#Save Data
```
let system = EBSystemStorage()
system.accessKey = "UseThisKeyToAccessThisObject"
let name = "Fido"
system.saveObject(name)
```
#Fetch Data
```
let system = EBSystemStorage()
system.accessKey = "UseThisKeyToAccessThisObject"
system.requestAccess()
```
#Display Data
```
class ViewController: UIViewController {
@IBOutlet weak var name : UILabel!
override func viewDidLoad() {
super.viewDidLoad()
let system = EBSystemStorage()
system.accessKey = "UseThisKeyToAccessThisObject"
system.requestAccess()
name.text = system.result as? String
}
}
```
#Remove Data
```
let system = EBSystemStorage()
system.accessKey = "SomeRandomKey"
system.removeObject()
```
#More Information
- You can create as many instances of EBSystemStorage as you want! This will help you save more data.