title: NSInteger value not valid when passing in a variable, for custom table view class delegate method
body: <p>I'm testing a custom table view style class: </p>
  
  <p><a href="https://github.com/TheVole/HorizontalTable" rel="nofollow">HorizontalTable</a></p>
  
  <p>It produces a horizontal table view. </p>
  
  <p>One of the delegate methods equivalent to <code>tableView:numberOfRowsInSection:</code> is:</p>
  
  <pre><code>- (NSInteger)numberOfColumnsForTableView:(HorizontalTableView *)tableView. 
  </code></pre>
  
  <p>If I give this a number (ex: <code>return 10;</code>) it is happy and it give me the number "cells" that I want. But if I feed it a value of <code>someArray.count</code> or an <code>int</code> or <code>NSInteger</code> variable, the table view just comes out blank, delivering no cells.</p>
  
  <p>I think that the method in the custom table view class that receives the <code>NSInteger</code> value is this:</p>
  
  <pre><code>- (NSUInteger)numberOfPages {
      NSInteger numPages = 0;
      if (_delegate)
          numPages = [_delegate numberOfColumnsForTableView:self];
      return numPages;
  }
  </code></pre>
  
  <p>Do I need to cast the result of <code>someArray.count</code> to an <code>NSInteger</code>?</p>