So I am trying to concatenate a bunch of input strings together as one string so I can save that to a text file. So far I am trying to write something like this
NSString *tempString = [[NSString alloc]initWithFormat:@"%@%@%@", text1, text2, text3];
The only problem with this is that I need a total of 30 strings stored this way. I need a way to do this without typing out each string name. Is there a way to use a for loop or something to accomplish this? Type the strings like this perhaps?
text(i)
So that the variable name would change each time it went through the for loop. I've tried doing something like this and I can't get it to work. If you can help me with this method or another way that you know to do it I would be very thankful.