title: NSMutableArray empty after created in init (with code)
body: <blockquote>
    <p>@property (nonatomic, strong) NSMutableArray *authorMutableArray;</p>
  </blockquote>
  
  <pre><code>- (id)init {
      self = [super init];
      if (self) {
  
          self.authorMutableArray = [[NSMutableArray alloc] initWithObjects:@"First Row", @"Second Row", nil];
  
          for (NSString *string in authorMutableArray) {
              NSLog(@"String: %@", string);
          }
  
          NSLog(@"Init in Add Model with Author count:%i", [authorMutableArray count]);
  
  
      }
  }
  </code></pre>
  
  <p>An example of accessing the property. The NSLog always shows the count as 0.</p>
  
  <pre><code>    - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      if (indexPath.section == 0) { 
          if (indexPath.row == [self.addModel.authorMutableArray count] - 1 ) {
              NSLog(@"count of %i", [self.addModel.authorMutableArray count]);
              return  UITableViewCellEditingStyleInsert;
          }
  
          else {
              return  UITableViewCellEditingStyleDelete;
  
          }
      }
  
      else {
          return UITableViewCellEditingStyleNone;
      }
  }
  </code></pre>
  
  <p>The array I'm creating in init is not keeping its values past this method. Any reason why? The for loop will show both objects in the array. If I try to ask this after the init method is called, the array is empty.</p>
  
  <p>Updated: Thank you everyone for your time and eyes. I had forgotten to return self in the init method.</p>