multiple variables in NSLog Objective C
<p>I'm having some trouble getting two or more variables showing up in the NSLog.</p>

<p>This works:</p>

<pre><code>int var1 = 10;
int var2 = 2;

NSLog(@"this is a variable: %d", var1);
</code></pre>

<p>but this doesn't:</p>

<pre><code>int var1 = 10;
int var2 = 2;

NSLog(@"this is a variable: %d", var1, " and heres another %d", var2);
</code></pre>

<p>Not quite sure what I'm doing wrong, and not entirely sure how the whole <code>%d</code> thing works either.  A not overly complicated explanation that's light on jargon would be appreciated.</p>