Create row header using table view Swift
<p>I have an array of an array of strings
At top level: </p>

<pre><code> Array = [[November 1 2016], [November 2 2016], [November 3 2016, ..., [Current    Date]]
</code></pre>

<p>In array [November 1 2016], it contains a strings [timeOne, timeTwo, timeThree...]. Similar strings occur under the array [November 2 2016] and on.</p>

<p>The goal is to create a table that has a row showing the date as shown in the top level array, for example "November 1 2016". And then under that top row have all the values (timeOne, timeTwo etc.) from that arrow in individual cells.
For example</p>

<pre><code> Row 1 = November 1 2016
 Row 2 = timeOne
 Row 3 = timeTwo
 Row 4 = timeThree
 Row 5 = November 2 2016
</code></pre>

<p>I have a function that creates an Array of the "timeOne, timeTwo, timeThree..." and then I can add that to the appropriate array.
The problem with my method of creating an array inside an array is that multiple timeValues will be taken each day.
How can I get swift to only record the date once each day the app is used and create a new array for this day. (for example if app not opened November 3, then the array includes November 2, November 4. But skips November 3.</p>

<p>Essentially what I am after is a table that looks kind of like this, but with only one column. Where it says 7:00am, 8:00am etc. will be my timeOne and timeTwo respectively</p>

<p>Is there a better way of going about this?
<a href="https://i.stack.imgur.com/HrEXk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HrEXk.jpg" alt="End goal from UI tableview"></a></p>