I want to add a string to single varilable using stringWithFormat.I knew this when using stringByAppendingString. Please help me add the code below using stringWithFormat.
NSString* curl = @"https://invoices?ticket="; curl = [curl stringByAppendingString:self.ticket]; curl = [curl stringByAppendingString:@"&apikey=bfc9c6ddeea9d75345cd"]; curl = [curl stringByReplacingOccurrencesOfString:@"\n" withString:@""];
Thank you Madan Mohan.
append objective-c stringwithformat
Madan mohan
source share