iphone - Insert a characters in NSString -


I'm having difficulty with subj.

I have NSString text, which is "Slow", and I need that NSMutableString * currentRequest contains "% t% e% x% t%" I'm trying in the circle: < / P>

  [currentRequest paragraph format: @ "% c %%", [text charsattexx: i]];  

This is working fine, but if the example in the text is "Rudiger", then I mean the non-Latin symbol, then the current requirement is a complete trash!

I have decided to insert the usage (zero) string: (NSSTING *) Astrong Endex: (NSUNTEGER) On an index I think this is not the right path. Maybe you know the right way?

Thank you.

I can be misunderstood, but I think that the appendFormat This issue is a mismatch between the % c format specification and the return type of the characterAtIndex method.

The method code characterAtIndex , while % c is an 8-bit unsigned character is expected

Some Apple developer docs for reference:

  • < / Html>

    Comments

    Popular posts from this blog

    c# - How to capture HTTP packet with SharpPcap -

    php - Multiple Select with Explode: only returns the word "Array" -

    php - jQuery AJAX Post not working -