Objective-Cã®åå¿è ã®æç´ã§ãã
Objective-Cåå¿è
ã®ç§ãèºããã¨ããã§ãã
ã¨ããããã¸ã§ã¯ããã½ã¼ã¹ã ãå¼ãç¶ãããã¦èªåã§å±éã§ããã®ãã確èªãã¦ãã¾ãã
ã½ã¼ã¹ãããªãã¨ããã¢ãã¿ãããªç¶æ³ã§ããç¾å®ã§ãã
ãéãããã£ã¦ããã®ã§ããã°ããªãã¨ãããªãã®ã§ãããã¸ã§Objective-Cã®ããªããã»ããµãå«ãã§ãã
IFã®ãã¹ãï¼å ¥ãåï¼ãã§ããªã
ä¾
#ifdef USE_POPU_PMENU [self startPopup]; #else #if (APP_TYPE != APP_TYPE_MAP) [self startLaunch]; #else [self performSegueWithIdentifier:@"secondView" sender:nil]; #endif /* (APP_TYPE != APP_TYPE_MAP) */ #endif /* USE_POPU_PMENU */
ã¯ã½è¨èªã¨å¼ã°ãã¦ããvbã§ããifã®ãã¹ããã§ãã¾ããããæ¹ãããã®ãããããªããã©è¦ã«ããã§ãã ãã¹ãã§ããªãã¨ããã«ã¤ã³ãã³ããã§ããObjective-Cãããã®ã§ãã ä¸ã®ä¾ã¯ã¾ã ããããããã§ããMethodã®éä¸ã«ããã¨ã«ãªã¹ã
ããªããã»ããµã®DEFINEãå«ã
DEFINEã§å®ç¾©ãããã©å¤ãå ¥ã£ã¦ããªãã¨ãããã¿ã¼ã³ãããã¾ã
#define USE_IMAGE_POST
å®ç¾©ããã¦ãããã©å¤ãå ¥ã£ã¦ããªãï¼ï¼ ãªã«ãå ¥ãã¦ããã
ããã«ãããããã®ãããªããã»ããµã§ä½¿ããããã« ã¿ã¼ã²ããã®åä½ã§ãã¤ãã¨ãã§ãã¾ã
ä¾ãã°ã以ä¸ã®ãããªå½¢ã§pchãããã¾ã
#import "CommonDefine.h" #ifndef ProjectX_pch #define ProjectX_pch #ifdef DS #import "CommonDefine_DS.h" #endif #endif /* ProjectX_pch */
ãã®#ifdef DSã®DSã£ã¦ã©ãã§è¨å®ããã¦ããã®ï¼ï¼
ä½ã£ã人ãæªãã®ã§ããã³ã¡ã³ãããæ¸ãã¦ããªãã®ã§ï¼ï¼
ã¾ãã§ããããããããDSã¨ããçãæåãã³ã¡ã³ãæ¸ãã¦ãããï¼ï¼
è²ã 調ã¹ãçµæããã®å¤ã¯Projectãã¡ã¤ã«ã®ã¿ã¼ã²ããã«GCC_PREPROCESSOR_DEFINITIONSããã ããã§è¨å®ããã¦ãã¾ãã
GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", DS, );
GUIã§ã¯ä»¥ä¸ã§ã
åèURL
https://qiita.com/edo_m18/items/126fe6561f662b86210e https://www.rk-k.com/archives/6031