title: How to create a subarray of NSArray using NSRange?
body: <p>I have an Array with content. as usual it contain 20 objects. I want the same array split into 2 sections in Tableview.
  I am trying to implement it with NSMake in current array. For example I need get in first tableview section 3 rows and second will contain all the rest (17 rows ).</p>
  
  <pre><code>switch (section) {
          case 0:
              return
              [[array subarrayWithRange:NSMakeRange(3, 8)] count];
              // in this line, it always takes from the first object in array, despite I told hime start from 3 (If I understand right, how to works NSMakeRange)
              break;
          case 1:
              return
              [[array subarrayWithRange:NSMakeRange(9, 19)] count];
              // here my app is crashing with an error 
              //*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSArray subarrayWithRange:]: range {9, 19} extends beyond bounds [0 .. 19]'
          default:
              break;
      }
  </code></pre>
  
  <p>Does anyone can help me with that?</p>