I suggest you split line 3 into two lines to isolate the problem.
NSString *result = [strrep substringWithRange:NSMakeRange(1,3)];
label.text = result;
If I were to guess, I would say that the shortcut was probably released somewhere and you are trying to assign a bad location.
source
share