开发者

NSLog with the release of the app [duplicate]

This question already has answers here: 开发者_如何学JAVA Closed 11 years ago.

Possible Duplicate:

Is it true that one should not use NSLog() on production code?

While a developer develops an app he/she is most likely using NSlogs these logs can be huge or small.. but will this make a big presentation difference for the app if you publish it in the appstore while you still have the NSLog("something%i",[stuff]); in your code.?


In any case, you can add to your .PCH this line:

#define DEBUG YES

and call NSLog in this way:

if(DEBUG) NSLog(@"debug mode");

Remember to set #define DEBUG NO when publish your app!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜