iOS每日一读官方文档01

@property (readonly,copy) NSString *localizedDescription;


/* Return a complete sentence which describes why the operation failed.For instance, for NSFileReadNoPermissionError: "You don't have permission.". In many cases this will be just the "because" part of the error message (but as a complete sentence, which makes localization easier).  Default implementation of this picks up the value of NSLocalizedFailureReasonErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil.

*/返回一个完整的句子描述为什么操作失败.比如,NSFileReadNoPermissionError:"你没有允许(权限)".在很多情况下着将会是错误信息的'because'部分(但作为一个完整的句子,使定位更加容易).这个默认实现从userInfo字典里选出NSLocalizedFailureReasonErrorKey键的值.如果不呈现,他为这个域咨询userInfoValueProvider,如果他返回为nil,这个也返回为nil

核心单词:complete sentence->完整的句子 for instance->例如,instance实例 permission-> in many cases->在许多情况下 localization->定位 localize->使地方话,使局部化 implementation实现 pick up ->选出 present->呈现 consult->咨询 domain->领域,域

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值