You import headers when you want to use the methods declared in the headers.
So, if you created a class called ObjectA to use the methods that you specified in ObjectA.h , you need to import it #import "ObjectA.h" .
Usually you only need to import .m implementation files. If you need it in the header file, you can use the @class annotation as follows:
@class ObjectA ... @property (nonatomic, strong) ObjectA *objectA;
source share