I am developing an application for the iPhone, and I am new to Objective-C, as well as to class.h and class.m.
Now I have two classes that must have a variable of a different type. But it just seems impossible.
If in class1.m (or class2.m) I include class1.h and then class2.h, I cannot declare class2 variables in class1.h, if I include class2.h and then class1.h, I cannot declare class1 variables in class2.h.
I hope you have an idea because it drives me crazy. Is it really impossible to do?
Thanks.
source
share