开发者

NSLog with the release of the app [duplicate]

开发者 https://www.devze.com 2023-03-08 06:44 出处:网络
This question already has answers here: 开发者_如何学JAVA Closed 11 years ago. Possible 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

精彩评论

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