#define const extern

将父类中的常量放到. m文件,子类就不会重复包含了。之后再.h文件中用extern NSSting * const ILScoreShowStartTime;// extern 用来声明变量和函数。const用来声明简单的常量,而#define可以声明复杂的常量,例如[NSString stringWith:@"dkdkdk"](const 不行)

原文地址:https://www.cnblogs.com/dengchaojie/p/4743407.html