title: Reload sections in UITableView
body: <p>I am writing an app that notifies user when its time to take his/her medicine. The label at the top of the page shows a date and the <code>tableView</code> gets populated with medicine names and times that need to be taken on that particular day. Now the sections get populated on the basis of number of medicines to be taken on that day. So the number of sections are dynamically changing over time; a medicine is scheduled to be taken on that particular day. Whenever the user takes a medicine, it is stored in DB as a variable that changes to <code>"1"</code> else it remains <code>"0"</code>.</p>
  
  <p>Also I know that I need to reload section of that particular medicine on that day.</p>
  
  <p>Now the question is how do I achieve that? How to reload a particular section?</p>
  
  <pre><code>for(NSManagedObject *mo in secondEntityArray) {
      NSDate *temp1 = [mo valueForKey:@"date"];
      [dateFormatter setDateFormat:@"yyyy-MM-dd"];
      NSString * temp2 = [dateFormatter stringFromDate:temp1];
      NSDate *temp3 = [dateFormatter dateFromString:temp2];
      NSDate * temp4 = [dateFormatter dateFromString:_dateLabel.text];
      if([temp3 compare:temp4] == NSOrderedSame) {
          if([[mo valueForKey:@"isNotificationFired"] isEqualToString:@"1"] &amp;&amp; [[mo valueForKey:@"repeatDays"] isEqualToString:@"Everyday"]) {
              //Reflect changes in tableView section
          }
      }
  }
  </code></pre>