有没有办法连接两个字符串并注入一个字符。我有 :
NSString *firstString = @"http://www.stackoverflow.com";
NSString *secondString = @"supercooloptions";
NSString *result = [firstString stringByAppendingString: secondString];
NSLog(@"the final string with "/" injection = %@", result);
我想要带有“/”的最后一个字符串注入 = www.stackoverflow.com/supercooloptions