I have a general coding style question for Objective C.
When I have a #define in a file, I put it directly below the #import lines of code and above the @implementation line of code:
#import "MyLibrary.h"
#define myConstant 99
@implementation MyClass
Is this standard style, or is there a standard style of a place to put the defines?
You should always put your
#defines after any imports. Otherwise you will pollute the imported files with your#definevalues and in extreme cases change how they work.