Searching hard coded text in xcode

£可爱£侵袭症+ 提交于 2019-12-12 07:58:20

问题


Hello I would like to localize my application, and the problem I have hard coded text all around the code also in the xib files. I would like quick way to externalize or better to get all hard coded text and put it in external file . if some one have done this before pls share ?


回答1:


You can use regular expression to search in all projects.

Press CMD + SHIFT + F and open global search.
Click on lens (on the left of textfield) and select "options".

Select Regular Expression and paste @"[a-zA-Z0-9]+"

hope this helps.



来源:https://stackoverflow.com/questions/9520040/searching-hard-coded-text-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!