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.
@property (nonatomic , strong) NSString *strConacatResponse;
in appdelegate.m
self.strConacatResponse = [self.strConacatResponse stringByAppendingString:[NSString stringWithFormat:@"Name : %@ ",name]];
then in another classes
NSString *strDates = [NSString stringWithFormat:@"\n Common utilities not expire *** EndDate: %@ *** StartDate: %@ ",paramEndDate,paramStartDate];
[AppDelegate sharedAppDelegate].strConacatResponse = [[AppDelegate sharedAppDelegate].strConacatResponse stringByAppendingString:strDates];
in my 3rd class
NSString *strTemp = @" \n Database getSuscriptionStatus error in api calling of apple ";
[AppDelegate sharedAppDelegate].strConacatResponse = [[AppDelegate sharedAppDelegate].strConacatResponse stringByAppendingString:strTemp];
but getting only last string