How to add unichar character to NSMutableString ?
unichar
NSMutableString
unichar c = 'T'; NSMutableString *s = [NSMutableString stringWithString:@"MyString"]; // want s to become "MyStringT"
https://discussions.apple.com/thread/1679290 offers:
[s appendString:[NSString stringWithCharacters:&c length:1]];
It looks too long / complicated ...
Use [NSString appendFormat:], so for the above:
[s appendFormat:@"%C", c];
Enjoy it!
Source: https://habr.com/ru/post/984466/More articles:5 minutes time interval up to 15 minutes average time interval - rHow to disable my checkbox from login in AngularJS? - javascriptWhere to find / configure for "Artifact" in Android Studio? - androidIcons in the center of the Without Text in Swift tab - ios8deprecation warning on ember data models - deprecatedruby-build: definition not found: 2.2.1 - ruby-on-railsMax. MQTT Connections - tcp-iprbenv & ruby-build does not show the same version list - ruby | fooobar.comCan a different name and link of a named tuple be different? - pythonPython Pandas "apply" a series of returns; can't convert to dataframe - pythonAll Articles