How to remove the last n characters from an NSString

We can use the substringToIndex method for this, using the length of our original string minus 1:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.