在xcode中搜索硬编码文本 [英] Searching hard coded text in xcode
本文介绍了在xcode中搜索硬编码文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我想本地化我的应用程序,问题是我在xib文件中的代码周围都有硬编码文本。
我想快速外化或更好地获取所有硬编码文本并将其放在外部文件中。
如果有人在pls共享之前完成此操作?
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 ?
推荐答案
您可以使用正则表达式搜索所有项目。
You can use regular expression to search in all projects.
按 CMD + SHIFT + F 并打开全局搜索。
点击镜头(在文本字段的左侧)并选择选项。
Press CMD + SHIFT + F and open global search.
Click on lens (on the left of textfield) and select "options".
选择正则表达式并粘贴 @[a -zA-Z0-9] +
Select Regular Expression and paste @"[a-zA-Z0-9]+"
希望这会有所帮助。
这篇关于在xcode中搜索硬编码文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文