Returning array count + 1 for tableview cells
<p>I've been struggling with this problem for quite a while and can't seem to find a solution. I've searched for days and haven't been able to find a relatable answer either. </p>

<p>I have a few different view controllers and each have a tableview inside of them. A function is executed that populates various arrays and those arrays are used to populate the tableview cells. </p>

<p>My issue is that each table view has a cell at indexPath 0 that serves as header information with some images and some text. Below that cell is dynamic content generated from the arrays. </p>

<p>Everything works fine with populating the table with the data from the arrays but when I'm returning the array count for numberOfRowsInSection one of the rows isn't displayed since I have the header cell at indexPath 0. </p>

<p>I've tried appending a +1 to the end of the count but it returns an error (index out of range). </p>

<p>Any help would be appreciated, I feel like I've been very close to resolving the issue but can't seem to complete it. The code for my tableview count isn't anything special, nor is the implementation of the data. </p>

<p>eventImages is a PFFile array</p>

<pre><code>override func tableView(tableView: UITableView!, numberOfRowsInSection section: Int) -&gt; Int {

    return eventImages.count
}
</code></pre>