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.
当我处于调试模式时,我需要执行一些操作,确切地说,当我处于调试模式时,我想在我的界面中添加一个按钮:
#ifdef DEBUG NSLog(@"Some actions, add button and assign an action, etc."); #else //Do another operations #endif
NSLog但是,即使我只是简单地测试我的调试模式,这似乎也不起作用。
NSLog
我错过了什么吗?提前谢谢。