title: NSArray count and adding 1 in if statement
body: <p>I am trying to get the count of an array and add it by 1 in an if statement and it does not seem to work. It causes a crash. Is this the right way to do it or am I doing something wrong?</p>
  
  <pre><code>if (currentPicture == [pictureArray count] +1) {
      currentPicture = 0;
  }
  </code></pre>