Swift StringDict规则

时间:2019-05-06 15:46:01

标签: swift string localization

我的问题类似于this,但是区别是我不知道我将传递多少个参数,并且基于参数的数量,我不得不决定要显示哪个文本。

如何将键和值放在stringDict中,例如:

"When you see this message, %@ will be printed."

"When you see this message, %@ and %@ will be printed."

"When you see this message, %@, %@, and %@ will be printed."

"When you see this message, %@, %@, %@, and others will be printed."

0 个答案:

没有答案