FAQ for interview:
A > #include #import the difference between @class three:
#include and #import (introduced several times)
is a copy of the function,
The difference is that #include used a few times, the import several times (assignment several times),
#import used several times, import only once (copy of content once)
Differences between #import and @class (whether to introduce header files)
#import实质是导入头文件 (Copy the contents of the header file),
@class just tell the compiler that this is a class, no substantive introduction of a header file (copy the contents of the header file),
Finally, @class and #import配合着使用, use @class in. h files, and use #import in. m to avoid the introduction of loops into the header file.
Remember not to use #import in. h files to introduce header files
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS Interview questions summary