博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS #ifdef DEBUG 详解
阅读量:2393 次
发布时间:2019-05-10

本文共 211 字,大约阅读时间需要 1 分钟。

1> #ifdef DEBUG代码块
#ifdef DEBUG
    NSLog(@"Debug 模式的代码...");
#else
    NSLog(@"Release 模式的代码...");
#endif
2> xcode 切换 debug 和 release版本
如果要测试在不同模式下代码的运行效果,可以选择 Product -> Scheme -> Edit Scheme
修改 Build Configuration 即可
你可能感兴趣的文章
Python的Twisted入门
查看>>
Flask的表单处理
查看>>
Flask-Login的使用
查看>>
Python往MySQL存储图片
查看>>
Flask-SQlAIchemy管理数据库
查看>>
Flask-Migrate实现数据库迁移
查看>>
su: cannot set user id: Resource temporarily unavailable
查看>>
SSHException: Incompatible ssh peer (no acceptable kex algorithm)
查看>>
shell切换用户
查看>>
session机制详解
查看>>
《算法导论》学习总结——第二部分1堆排序
查看>>
linux下进程的一些总结
查看>>
强大的g++呢还是强大的C++?太假了吧
查看>>
C++中的内联函数inline总结
查看>>
C++中的函数指针的一些总结
查看>>
ubuntu下为postgresql添加ODBC驱动过程
查看>>
linux下的su,su -,以及cd,cd - ,cd ~总结
查看>>
CAS锁为什么是乐观锁呢
查看>>
Argument of type '(Foo::)(int,int)' does not match 'void (*)(int,int)'以及静态函数问题
查看>>
今天遇到的postgresql中的备份和恢复
查看>>