Monday, 5 August 2013

Difference between #import and #include in Objective C code ? iPhone/ XCode programming

#import and #include are like same. They perform the similar thing but the only difference is that #import makes sure that the same header file hasn't included again.

It is preferred to write #import over #include in your code. 

- Reference Learning from iOS Developer Library

No comments:

Post a Comment