Launch Arguments & Environment Variables -> Xcode 的运行参数和环境变量设置,对 debug 很有用处
参数的设置方法和格式如图
或者也可以直接在代码中这么设置:
第二遍再跑就可以看到相同的效果了
参数格式:
-NSDoubleLocalizedStrings YES
如图:
参考:http://my.oschina.net/are1OfBlog/blog/389391
https://leafduo.com
http://nshipster.com/launch-arguments-and-environment-variables/
http://www.cocoachina.com/industry/20131012/7148.html