title: How to use static int value in swift?
body: <p>Basically I am doing some computation for which I need to have an <code>Int</code> variable initiating with <code>0</code> in <code>cellForRowAtIndexPath</code> everytime I reload the table view. </p>
  
  <p>In Objective-C, I used this in cellForRowAtIndexPath of UITableView</p>
  
  <pre><code>static int rowSum= 0; 
  rowSum += [[myArray objectAtIndex:indexPath.Row] intValue];
  </code></pre>
  
  <p>How do we do this in Swift language ? The suggested link does not do that.</p>