相关疑难解决方法(0)

大写所有字符串根据Locale - Swift

我试图根据'Locale'大写所有字符串,但它不起作用.

var text = "istanbul, izmir"

println(text.uppercaseStringWithLocale(NSLocale.currentLocale())) 
Run Code Online (Sandbox Code Playgroud)

在土耳其语中,我的大写是不是我.我的结果是伊斯坦布尔,IZMIR但它应该返回İSTANBUL,İZMİR.

请问我的问题在哪里?

ios nslocale swift

5
推荐指数
2
解决办法
3367
查看次数

标签 统计

ios ×1

nslocale ×1

swift ×1