我试图在没有任何成功的情况下附加文本,直到我尝试了这个:
NSString *n_result = @"";
n_result = [n_result stringByAppendingString:[NSString stringWithFormat:@"The number "]];
n_result = [n_result stringByAppendingString:[NSString stringWithFormat:@"%@ ", n_analyze]];
n_result = [n_result stringByAppendingString:[NSString stringWithFormat:@", has "]];
n_result = [n_result stringByAppendingString:[NSString stringWithFormat:@"%i ", steps]];
n_result = [n_result stringByAppendingString:[NSString stringWithFormat:@"steps to reach 1"]];
问题是,必须有一种更简单的方法来做到这一点。但我不知道怎么做。谁能帮我这个?我一直在到处寻找如何“更好”地做到这一点。