Created
October 24, 2013 09:45
-
-
Save between40and2/7134217 to your computer and use it in GitHub Desktop.
class_addIvar, in Objective-C runtime, is useless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_addIvar, in Objective-C runtime, is useless, because it does not support to add ivar in an EXISTING class. | |
https://developer.apple.com/library/ios/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html#//apple_ref/c/func/class_addIvar | |
You can use the concept of idInfo (see id-ego-superego), to add run-time generated objects' property. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment