 <p>To join an array of strings into a single string by a separator (character which would be a string), you could use this method of <code>NSArray</code> class:</p> <pre><code>NSArray* array = @[@"iPhone", @"iPad", @"iPod"]; NSString* query = [array componentsJoinedByString:@","]; </code></pre> <p>By using this method, you won't need to drop the last extra comma (or whatever) because it won't add it to the final string.</p>