It's not that hard ...
NSMutableString *a = [NSMutableString stringWithString:@"aString"];
NSRange range;
range.location = 0;
range.length = 1;
[a deleteCharactersInRange:range];
You can shorten the range creation as follows:
NSRange range = {0,1}; // edit: of course 0,1 instead of 1,0, thanks Omar
source
share