You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//nsstring+morphing line 44
NSInteger e = endLocation - startLocation;
if (startLocation + e < string.length) {
NSRange r = NSMakeRange(startLocation, e);
[mergeString appendString:[string substringWithRange:r]];
}
else
{
//out of range
}
The text was updated successfully, but these errors were encountered:
I was getting a range exception on longer strings. I fixed it by adding checks for range in the main class and its string category
The text was updated successfully, but these errors were encountered: