当我试图在UIAlertView *中显示西里尔字母或特定字符“★”而不是消息时,它会显示一些随机字符(可能是1,可能是10 ..)。
示例:
[[[[UIAlertView alloc] initWithTitle:@"Тест тема (cyr)"
message:@"Message with char ★"
delegate:self
cancelButtonTitle:@"Ок (cyr)"
otherButtonTitles:nil] autorelease] show];
结果我有:
Title: " 5 A B
Message: M
Button: :
答案 0 :(得分:0)
计划在未来几个月内在Apportable平台中修复字符串中存在非ASCII字符的错误。与此同时,解决方法是:
[[[[UIAlertView alloc] initWithTitle:[NSString stringWithUTF8String:@"Тест тема (cyr)"]
message:[NSString stringWithUTF8String:@"Message with char ★"]
delegate:self
cancelButtonTitle:[NSString stringWithUTF8String:@"Ок (cyr)"]
otherButtonTitles:nil] autorelease] show];