Dynamic sections and rows UITableView
<p>I am new to iOS,</p>

<p>I am developing <code>UITableView</code> with Dynamic rows and sections</p>

<p>I want to display all "today" data in first section, "tomorrow" in other section and "Sunday" in other section and so on...</p>

<p>Code I have tried is,</p>

<p>Here is my Array:</p>

<pre><code> {
      "callbackSlotId": "1234-1234-3214-1233",
      "callbackSlotName": "10:00-10:30",
      "day": "today",
      "availablenow": true
    },
    {
      "callbackSlotId": "1234-1234-3214-1234",
      "callbackSlotName": "11:00-11:30",
      "day": "today",
      "availablenow": false
    },
    {
      "callbackSlotId": "1234-1234-3214-1235",
      "callbackSlotName": "10:30-11:00",
      "day": "today",
      "availablenow": false
    },
    {
      "callbackSlotId": "1234-1234-3214-1236",
      "callbackSlotName": "10:30-11:00",
      "day": "tomorrow",
      "availablenow": false
    },
    {
      "callbackSlotId": "1234-1234-3214-1237",
      "callbackSlotName": "10:30-11:00",
      "day": "tomorrow",
      "availablenow": false
   },
{
  "callbackSlotId": "1234-1234-3214-1241",
  "callbackSlotName": "10:30-11:00",
  "day": "Sunday",
  "availablenow": false
}
...
...
...
</code></pre>

<p>Using this code it displays all data in multiple sections:</p>

<pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return [Array count];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [Array count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cellIdentifier"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cellIdentifier"];

        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }

    cell.textLabel.text=[Array objectAtIndex:indexPath.row];

    return cell;

}
</code></pre>

<p>Can any one help me?
<strong>Thanks for reading</strong></p>