开发者

Get the "Active Configuration"

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜