I\'m trying to add some fancy text to a label, but I\'ve run into some problems with the NSMutableAttributedString class. I was trying to achieve four this: 1. Change font,
NSRange has two values, the start index and the length of the range.
So if you're starting at index 6 and going length characters after that you're going past the end of the string, what you want is:
NSRange worldRange = NSMakeRange(6, length - 6);
Your length is too long on worldRange. NSMakeRange takes two arguments, the start point and the length, not the start point and the end point. That's probably why you are getting confused about both problems.