I'm fresh to learn Objective-C. Header file is most like a public interface and Implementation file has private interface.
But I'm confused by choosing where to import another header file.
But I'm so confused by choosing where to import.
If, and only if, what you are importing is required by the public interface, e.g. an imported type is used in the signature of a public method, then import in the interface file.
If what you are importing is only required internally by the implementation then import in the implementation file.
The above is a general principle, not tied or limited to Objective-C.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments