A sample project to show how a class with dynamic properties is being implemented. The Project contains a class KPBAppPreferences which declares sample properties which are stored to NSUserDefaults. KPBUserDefaultsBackedObject contains the implementation for dynamic method resolution and adds method implementations dynamically as required. Each property is backed by NSUserDefaults, the keys used to store and read data are resolved from the property name. Objects can be initialised as singletons or with a uniqueIdentifier. All objects of a class are grouped in NSUserDefaults
-
Notifications
You must be signed in to change notification settings - Fork 0
kpbode/KPBUserDefaultsBackedObject
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published