#define vs const in Objective-C
First, I found that its not possible to define the type of the constant using #define, why is that? Why is what? It’s not true: #define MY_INT_CONSTANT ((int) 12345) Second, are there any advantages to use one of them over the another one? Yes. #define defines a macro which is replaced even before compilation starts. … Read more