开发者

Get the "Active Configuration"

开发者 https://www.devze.com 2023-03-01 14:11 出处:网络
is there an way to get the \"Active Configuration\" (Debug / Re开发者_C百科lease) with ObjC or the iOS SDK ?Easy way

is there an way to get the "Active Configuration" (Debug / Re开发者_C百科lease) with ObjC or the iOS SDK ?


Easy way

bool isDebug = NO;
#ifdef DEBUG
 isDebug = YES;  
#endif

What do you mean by getting it? This example will set the variable at compile time which can be use to check if it's a debug build or not in the program.

0

精彩评论

暂无评论...
验证码 换一张
取 消