Objective-C string replace

NSString *testStr = @"This is a test work.";
    
testStr = [testStr stringByReplacingOccurrencesOfString:@"work" withString:@"word"];
Loading