title: How to append the string variables using stringWithFormat method in Objective-C
body: <p>I want to append the string into single varilable using stringWithFormat.I knew it in using stringByAppendingString. Please help me to append using stringWithFormat for the below code.</p>
  
  <pre><code>NSString* curl = @"https://invoices?ticket=";
  curl = [curl stringByAppendingString:self.ticket];
  curl = [curl stringByAppendingString:@"&amp;apikey=bfc9c6ddeea9d75345cd"];
  curl = [curl stringByReplacingOccurrencesOfString:@"\n" withString:@""];
  </code></pre>
  
  <p>Thank You,
  Madan Mohan.</p>