Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用
#define NSLog(p1, ...);
在我的代码中注销。然后我用
//#define NSLog(p1, ...);
在我的代码中进行登录 现在我使用 Xcode 4.3.1,这似乎没有任何效果。
难道我做错了什么?还是有替代方案?
使用#define kMyString @"This is my string text!"然后使用NSLog(@"String: %@",kMyString);
#define kMyString @"This is my string text!"
NSLog(@"String: %@",kMyString);
我找到了解决方案。与以前版本的 Xcode 的不同之处在于
当我将此代码放入 .m 文件时,它不再起作用。它仅适用于 .h 文件