Obj-C crashes on substringWithRange message

Posted by code_burgar on Stack Overflow See other posts from Stack Overflow or by code_burgar
Published on 2010-03-30T21:42:08Z Indexed on 2010/03/30 23:53 UTC
Read the original article Hit count: 199

The following code is making my app crash at line 3 without an error I would recognize or know how to deal with. Any ideas as to what I am doing wrong?

NSInteger *match = [str1 intValue] + [str2 intValue];
NSString *strrep = [NSString stringWithFormat:@"%i", match];
label.text = [strrep substringWithRange:NSMakeRange(1,3)];

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about iphone-sdk