I have an NSArray with objects :
NSArray *array = [NSArray arrayWithObjects:@"Saturday",@"Sunday",@"Monday",@"tuesday",@"Wednesday",@"thursday",nil];
and some times like this :
array = [NSArray arrayWithObjects:@"Tuesday",@"Monday",nil];
I would like to have a string like this :
dinner : sunday, monday,tusday, wednesday, thurs...
or
dinner : tuesday, monday.
How i can i do this with stringWithFormat?
thanks
Use
NSArray‘scomponentsJoinedByString:.