I am trying to dynamic create objc class at runtime and I need to add some Ivar
to the created class. I found class_addIvar
which should do what I want, but I also found these functions:
class_setIvarLayout
class_getIvarLayout
class_getWeakIvarLayout
class_setWeakIvarLayout
the doc did not really said any useful information about these methods and I can't find out any useful explanation from web. So what are they? Do I need to use them if I want to do something with Ivar
?