0
我在使用subj時遇到了問題。在NSString中插入字符
我有NSString文本,包含「SLOVO」,我需要NSMutableString * currentRequest包含「%t%e%x%t%」。 我試圖週期:
[currentRequest appendFormat:@"%c%%", [text characterAtIndex:i]];
它的正常工作,但如果文本包含例如「呂迪格」,我的意思非拉丁字符,然後currentRequest包含完整的垃圾!我看到決定是使用 (void)insertString:(NSString *)aString atIndex:(NSUInteger)anIndex 但我認爲這是不正確的方式。 可能是正確的方式?
謝謝。
非常感謝你! – 2009-12-06 14:35:29