gpt4 book ai didi

objective-c - NSLocalizedString 格式

转载 作者:IT老高 更新时间:2023-10-28 11:48:45 25 4
gpt4 key购买 nike

我将如何使用 NSLocalizedString 这个字符串:

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

在我以下列方式使用之前使用 stringWithFormat 时:

[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];

关于objective-c - NSLocalizedString 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14984555/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com