I have 2 classes - A & B. There is another class C wich inherits Class A. During runtime for some reasons i need to swap Super Class A with Super Class B. I had gone through runtime.h & found class_setSuperClass(Class myClass,Class newSuperClass). But this depreciated from iOS 2.0.
is there any way to achieve the same functionality ?
EDIT : I think this is no way related to other possible duplicates [Dynamically change an object's superclass. All i am asking is there any alternative way to achieve same functionality as "class_setSuperClass" method ?
Thanks for your help in advance.