NSError localizedDescription始终返回英语错误消息 [英] NSError localizedDescription always returns english error message
本文介绍了NSError localizedDescription始终返回英语错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么NSURLErrorDomain的NSError *错误对象总是以英文返回error.localizedDescription?
Why does an NSError * error object with NSURLErrorDomain always return the error.localizedDescription in english ?
推荐答案
这个问题的答案问题可以在项目设置中找到。您必须将您感兴趣的语言添加到项目设置:
The answer to this question can be found in the project settings. You have to add the language you are interested in to your project Settings:
- 在左侧选择项目导航
- 选择项目(不是目标)
- 选择信息窗格
- 将语言添加到本地化部分
- Select the Project in the left navigate
- select the project (not the target)
- select the "Info" pane
- add the language to the "localization" section
这篇关于NSError localizedDescription始终返回英语错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文