Swift中使用DEBUG和RELEASE模式
2017-02-22 本文已影响0人
ray_1942
1> BuildSetting -> 搜索 Custom Flags 点击右边的三角△ Other Swift Flags
▽Debug双击/+ 添加 -DDEBUG
▽Release双击/+ 添加 -DRELEASE
2>
#if DEBUG/RELEASE
#endif
不添加的话代码不执行
1> BuildSetting -> 搜索 Custom Flags 点击右边的三角△ Other Swift Flags
▽Debug双击/+ 添加 -DDEBUG
▽Release双击/+ 添加 -DRELEASE
2>
#if DEBUG/RELEASE
#endif
不添加的话代码不执行