I’m having some error on the following relationship
I have 2 classes, Class A and Class B
inside Class A header, it will #import “B.h”
inside Class B header, it will #import “A.h”
I’m having error during compilation. Anyone know how can I resolve this?
Error looks something like this:
expected specifier-qualifier-list before ‘GameUILayer’
Instead of importing the headers in the .h files, use forward declarations. So instead of
you use:
etc
and then you use the import statement within the .m files.
See my earlier answer for the link to the documenation.