我想用逗号作为分隔符来连接字符串,结果必须存储在字符串中... comma=@","; for(i=0;i<[resources count];i++) { Record *aRecord = [resources objectAtIndex:i];
temp=aRecord.programID;
if(i==0)
pid=temp;
else
//i am using this one to cancatenate but is not working why?
pid = [NSString stringWithFormat:@"%@%@%@", pid,comma,temp]; }