开发者

How to use Norwegian language iphone?

How can i use Norwegian characters to show them in UILabel in my application.

if i 开发者_如何学JAVAuse it directly it shows garbage value.


The characters should work. I'm using a UILabel which loads from a nib file into the view of a ViewController. The label works in Times New Roman and Palatino (and presumably other fonts) when I set the text with the following code: [myLabel setText:@"ÆØÅ æøå"]; . I would try copying and pasting that line directly and see what happens.

I would guess that you're getting your characters from somewhere whose representation is not quite right in NSString terms. I grabbed these from Wikipedia. (I don't speak Norwegian so I'm not sure if you need other non-English alphabet characters - as far as I could see these were the only ones.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜