简体   繁体   中英

How to change value defined constants in Objective C

I've declared constant as follows:

#define OPENIN_DIR_PATH_FORMAT_STRING L"%@"              

Now how should I change the value for OPENIN_DIR_PATH_FORMAT_STRING here with %@

#define is not making constant it's the macro definition. If you want to change this macro you might do #undef and #define it again. But I strongly discourage you from messing around with macros :)

See This for more details

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM