#define
There are different ways to create constants in Objective-C, but the easiest way is to use #define statements.#define however is a preprocessor that replaces all instance with it even before compilation starts. |
#import
Objective-C has the #import preprocessor instruction. This does almost the same as #include.The #import line is only replaced by the contents of the named file for the first time it is encountered. Every time after that it is just ignored
#pragma
#pragma mark is the fascility for Xcode but it has no impact on your code.It is used for categorizing methods, so you can find your methods easily. It is very useful for long projects
Objective-C has the #import preprocessor instruction. This does almost the same as #include.The #import line is only replaced by the contents of the named file for the first time it is encountered. Every time after that it is just ignored
#pragma
#pragma mark is the fascility for Xcode but it has no impact on your code.It is used for categorizing methods, so you can find your methods easily. It is very useful for long projects
No comments:
Post a Comment