title: Having problems adding objects to array
body: <p>In the code below, I am trying to add objects to array. No error, but is not adding objects either. Sorry for asking this pretty basic question. Need help</p>
  
  <p>The NS Object Definition<br>
      //DataDefinition.h
      #import </p>
  
  <pre><code>@interface DataDefinition : NSObject
  @property (nonatomic, retain) NSString *dataHeader;
  @property (nonatomic, retain) NSMutableArray *dataDetails;
  
  @end
  </code></pre>
  
  <p>The DataDefinition Implementation</p>
  
  <pre><code>#import "DataDefinition.h"
  @implementation DataDefinition
  
  @synthesize dataHeader;
  @synthesize dataDetails;
  
  @end
  </code></pre>
  
  <p>The Display header section
      //DataDisplay.h
      #import </p>
  
  <pre><code>#import "DataDefinition.h"
  
  @interface DataDisplay : UITableViewController
  @property (strong, nonatomic) NSMutableArray *dataSet;
  @property (strong, atomic) DataDefinition *individualData;
  
  @end
  </code></pre>
  
  <p>The Display implementation section</p>
  
  <pre><code> //DataDisplay.m
   #import "DataDisplay.h"
  
   @interface DataDisplay ()
   @end
  
   @implementation DataDisplay
   @synthesize dataSet;
   @synthesize individualData;
  
  - (void)viewDidLoad
  {
  
      [super viewDidLoad];
  
      individualData.dataHeader  = @"Header1";
      individualData.dataDetails = [[NSMutableArray alloc] initWithObjects:@"Header1-Detail1", @"Header1-Detail2", @"Header1-Detail3", nil];
  
      //This didnot add
      [dataSet addObject:individualData];
      NSLog(@"Count of objects is %d:",[dataSet count]);
  
      //Nor did this
      dataSet = [[NSMutableArray alloc] initWithObjects:individualData, nil];
      NSLog(@"Count of objects is %d:",[dataSet count]);
  
      self.title = @"DataDisplay";
  }
  </code></pre>