我试图根据'Locale'大写所有字符串,但它不起作用.
var text = "istanbul, izmir" println(text.uppercaseStringWithLocale(NSLocale.currentLocale()))
在土耳其语中,我的大写是不是我.我的结果是伊斯坦布尔,IZMIR但它应该返回İSTANBUL,İZMİR.
请问我的问题在哪里?
ios nslocale swift
ios ×1
nslocale ×1
swift ×1