title: how to append string in global variable of string in objective c
body: <p>I have created global string in app delegate class and append strings in that string in multiple classes as my application control moves but i m getting only last appended string.</p>
  
  <pre><code>@property (nonatomic , strong) NSString *strConacatResponse;
  </code></pre>
  
  <p>in appdelegate.m </p>
  
  <pre><code>self.strConacatResponse = [self.strConacatResponse stringByAppendingString:[NSString stringWithFormat:@"Name : %@ ",name]];
  </code></pre>
  
  <p>then in another classes </p>
  
  <pre><code>NSString *strDates = [NSString stringWithFormat:@"\n Common utilities not expire *** EndDate: %@ *** StartDate: %@ ",paramEndDate,paramStartDate];
  
  
      [AppDelegate sharedAppDelegate].strConacatResponse =  [[AppDelegate sharedAppDelegate].strConacatResponse stringByAppendingString:strDates];
  </code></pre>
  
  <p>in my 3rd class</p>
  
  <pre><code> NSString *strTemp = @" \n Database getSuscriptionStatus error in api calling of apple   ";
      [AppDelegate sharedAppDelegate].strConacatResponse = [[AppDelegate sharedAppDelegate].strConacatResponse stringByAppendingString:strTemp];
  </code></pre>
  
  <p>but getting only last string </p>