Если вам разрешено изменять формат шаблона, вы можете использовать строки формата .
NSString *template1 = @"%1$@ Likes %2$@. (see. %3$@)",
*template2 = @"%2$@ got a %3$@ from %1$@.";
NSString *msg1 = [NSString stringWithFormat:template1,@"Raman",@"You",@"ThisGift"],
*msg2 = [NSString stringWithFormat:template2,@"Raman",@"You",@"ThisGift"];
или (если строка формата всегда может зависеть от аргументов, которые заменяютсязаказ):
NSString *template = @"%@ Likes %@. (see. %@)";
NSString *msg = [NSString stringWithFormat:template,@"Raman",@"You",@"ThisGift"];