(To) oc static extern and const, ocextern
Static global, which can be changed. If static is declared in a class, the change volume is also used when it is used elsewhere in the class. Similar to java, but cannot be accessed directly using the class name. Const is a constant and cannot be changed to extern 1. if meString has been declared in other Class a and you want to use this variable in another class B, you can use extern NSString * meString; to get the same value in Class, and can be assigned again. (For more information, see click open link. For more information, see click open link. 2. it is the literal meaning of the external, not the extension. If the external is not defined, it cannot be used. Of course, there is another use of extern "c", which is the access method. 3. OS development uses extern to access global variables. For details, refer to: Click to open the link. const is a constant and cannot be changed. h extern NSString * const SIAlertViewWillDismissNotification ;. m NSString * const SIAlertViewWillDismissNotification = @ "SIAlertViewWillDismissNotification"; static global, which can be changed. If static is declared in a class and used elsewhere in the class, it is also the amount of changes used. Similar to java, but cannot be accessed directly using the class name. Const is a constant and cannot be changed to extern 1. if meString has been declared in other Class a and you want to use this variable in another class B, you can use extern NSString * meString; to get the same value in Class, and can be assigned again. (For more information, see click open link. For more information, see click open link. 2. it is the literal meaning of the external, not the extension. If the external is not defined, it cannot be used. Of course, there is another use of extern "c", which is the access method. 3. OS development uses extern to access global variables. For details, refer to: Click to open the link. const is a constant and cannot be changed. h extern NSString * const SIAlertViewWillDismissNotification ;. m NSString * const SIAlertViewWillDismissNotification = @ "SIAlertViewWillDismissNotification ";