Difference Between includes and imports

header-files, include, include-guards, ios, objective-c

Solution

The `#import` directive is an improved version of `#include`. `#import` ensures that a file is only ever included once so that you never have a problem with recursive includes.

`#import ""` first check the header in project folder then goes to system library, and the `#import<>` checks for system headers". In theory the locations are compiler defined and they could be implemented differently on a given platform.

Problem

Possible Duplicate: What is the difference between #import and #include in Objective-C? What is the difference between ``` #include< > #include" " #import< > #import" " ```

Original source

Related problems