0

当我尝试在 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:      :
4

1 回答 1

0

字符串中存在非 ASCII 字符的错误,计划在未来几个月内在 Apportable 平台中修复。与此同时,一种解决方法是:

[[[[UIAlertView alloc] initWithTitle:[NSString stringWithUTF8String:@"Тест тема (cyr)"]
                             message:[NSString stringWithUTF8String:@"Message with char ★"]
                            delegate:self
                   cancelButtonTitle:[NSString stringWithUTF8String:@"Ок (cyr)"]
                   otherButtonTitles:nil] autorelease] show];
于 2013-11-17T18:01:29.593 回答