I expected this code to replace the hate with some love.
NSMutableString *teststring=@"I hate programming my iPhone";
NSString *overwriteSource=@"love";
NSRange temprange=NSMakeRange(2, 4);
[teststring replaceCharactersInRange:temprange withString:overwriteSource];
NSLog(@"%@",teststring);
This terminates due to an uncaught exception and I can't figure out why. Help ! (and thanks)