当我将此字符串数组添加到 summaryText UILabel 时,它会崩溃。请让我知道如何解决这个问题。
NSMutableArray *arr = [[NSMutableArray alloc]init];
arr = [Singleton getArray];
NSString *str = [arr componentsJoinedByString:@"\n"];
summaryText.text = str;
这是我命令单击摘要文本时出现的内容
@implementation TotalViewController
@synthesize tax,taxLabel,total,totalLabel,final,finalLabel,fiveLabel,threeLabel,twoLabel,five,three,two, points, pointsLabel,summaryText;