for(int j=0;j<featuresKeyCount;j++) {
NSString *str1=[featuresKey objectAtIndex:j];
NSString *str2=[str1 stringByAppendingString: @":"];
}
在上面的代码中,我得到
str1= Phone No
Projector
VCD
LCD
Polycom
Digital Phone
Speaker Phone
In str2 = Phone No:
Projector:
VCD:
LCD:
Polycom:
Digital Phone:
Speaker Phone:
但我想要这样的输出:
Phone No :
Projector :
VCD :
LCD :
Polycom :
Digital Phone:
Speaker Phone:
对此有任何建议。