I need to add constant text to NSString and pass it to my method. The idea is that i need to have “X1“and afterwards goes string which is dynamic. How should i fuse them to one string?
Well, here is the code, maybe it will be much clearer than my explanation of that I am trying to do.
NSString *name = [[NSUserDefaults standardUserDefaults] stringForKey:@"Name"];
[self sendSMS:[@"*X1*%@" name]];
I’m not 100% clear on what you’re asking but does this help?