I am used to doing this in C or C++, ie:
myChar++;
should increment a letter.
I am trying to do the same in Objective-C, except that I have a NSString to start off with (the NSString is always just one letter). I have tried converting the NSString to a char *, but this method is deprecated and other ways of achieving this don’t seem to work.
How should I convert an NSString to a char * – or, is there a way to increment a character in objective-c without needing a char * somehow?
Thanks 🙂
Of course, this assumes incrementing a Unicode character makes sense, which does for ASCII-range characters but probably not for others.