我有一個nsmutablearray有5個對象。iphonesdk追加字符串問題
例如,如果它包含像蘋果,貓,球,狗,螞蟻這樣的對象,我希望它們用逗號分隔,就像蘋果,貓,球,狗,螞蟻一樣。請幫我解決一下這個。
編輯
publishingpost //nsmutable array contains all these object
-(ibaction)post
{
nsstring *str;
nsstring *str2 [email protected]",";
for(int i = 0; i< [publishingpost count]; i++){
nsstring *str = [publishingpost objectAtIndex:i];
//append both str1, str2 to generate comma separated objects
}
這個問題是有點混亂,法拉茲。是否有可能編輯它重新詞彙,這樣問題就會清楚了? –