NSLocalizedString格式 [英] NSLocalizedString with format

查看:63
本文介绍了NSLocalizedString格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该字符串如何使用NSLocalizedString:

[NSString stringWithFormat:@"Is "%@" still correct for "%@" tap "OK" otherwise tap "Change" to choose new contact details", individual.contactInfo, individual.name];

在以以下方式使用stringWithFormat之前,使用它:

When using stringWithFormat before I've used it in the following manner:

[NSString stringWithFormat:@"%d %@", itemCount, NSLocalizedString(@"number of items", nil)];

推荐答案

[NSString stringWithFormat:NSLocalizedString(@"Is "%@" still correct for "%@" tap "OK" otherwise tap "Change" to choose new contact details", @"Query if parm 1 is still correct for parm 2"), individual.contactInfo, individual.name];

这篇关于NSLocalizedString格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆