title: Getting EXC_BAD_ACCESS for NSArray
body: <p>I am getting EXC_BAD_ACCESS error for an NSArray. There are other array and they are working fine. I initialized the array in viewDidLoad. I am getting the error whenever I am accessing it from different block. But this array is defined in header file. ARC is on. Here is my code</p>
  
  <p>header file .h</p>
  
  <pre><code>@interface PopoverViewController : UITableViewController 
  { 
      NSArray *typeFilterItem; 
      NSArray *changeFilterItem; 
      NSArray *nFragmentFilterItems; 
  }
  </code></pre>
  
  <p>.m File</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      // Uncomment the following line to preserve selection between presentations.
      // self.clearsSelectionOnViewWillAppear = NO;
  
      // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
      // self.navigationItem.rightBarButtonItem = self.editButtonItem;
  
      // set section
      typeFilterItem = [NSArray arrayWithObjects:@"All",
                        @"Type-1",
                        @"Type-2",
                        @"Type-3", nil];
      changeFilterItem = [NSArray arrayWithObjects:@"All",
                          @"Static Change",
                          @"Consistent Change",
                          @"Inconsistent Change", nil];
  
  
      nFragmentFilterItems = [NSArray arrayWithObjects:@"Min",
                              @"Max", nil]; // this is the array causing problem
      NSLog(@"count: %d", nFragmentFilterItems.count); // here its ok
      // set filters
      [self setAllTypeFilers];
      [self setAllChangePatternFilters];
  
  }
  </code></pre>
  
  <p>in uitable data source</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
  
      /******* getting error at this line *****/
      NSLog(@"count: %d", nFragmentFilterItems.count);
      if (section == 0) {
          return typeFilterItem.count;
      } else if (section == 1) {
          return changeFilterItem.count;
      } else if (section == 2) {
          return 2;
      } else if (section == 3) {
          return 1;
      }
      return 0;
  }
  </code></pre>
  
  <p>Thanks in advance</p>