NSUserDefaults-Property
NSUserDefaults-Property copied to clipboard
swift @dynamic
How do you use the code in a swift project?
Since Swift doesn't support the functionality of @dynamic except for Core Data (i.e. @NSManaged), you need to implement it in ObjC like NSUserDefaults+Example.[hm] does and import the header file via your bridge file.