[string appendString:@""];
((appdelegete *)[UIApplication sharedApplication].delegate).salesReceipt.old = [string ];
我想在收集数据的NSMutableString
字符串中添加所有元素。最好的方法是什么?在我的appdelegate课程中有一个NSMutableString
,我将在其中存储NSMutableString
答案 0 :(得分:0)
NSMutabelString* string = [[NSMutabelString alloc] initWithCapacity:2]
[string appendString:@"My String "];
[string appendString:@""];
//Now you need to access your NSMutableArray from Delegate add add the string.
NSMutableArray* myArray = ((appdelegete *)[UIApplication sharedApplication].delegate).salesReceipt.items ;
[myArray addObject:string];