title: App crashing in UItableView cell for row
body: <p>I am trying to create a sample app with tableView and populating  NSArray on that  tableview . it crashes everytime i scroll when i declare array using </p>
  
  <pre><code>NSArray *listItems = @[];
  </code></pre>
  
  <p>when i change back the array declaration to </p>
  
  <pre><code>NSArray * listItems = [[NSArray alloc]initWithObjects:@"a",
  
          @"b",
          @"c",
          @"d",
          @"e",
          @"f",
          @"g",
          @"h",
          @"i",
          @"j",
          @"k",
          @"l",
          @"m",
          @"n",
          @"o",
          @"p",
          @"q",
          @"r",
          @"s",
          @"t",
          @"u",
          @"v",
          @"w",
          @"x",
          @"y",
          @"z",
          @"1",
          @"2",
          @"3 ",
          @"4 ",
          @"5 ",
          @"6 ",
          @"7 ",
          @"8 ",
          @"9",
          @"0",
          @"12",nil]retain];
  </code></pre>
  
  <p>it works fine ! . what is the difference between both ? iam using non-ARC environment . Here is my code </p>
  
  <pre><code>#import "MyPopOverView.h"
  
  
  
  @implementation MyPopOverView
  
  @synthesize tableListiTems;
  
  @synthesize lists;
  
  @synthesize listDict;
  
  
  
  
  
  
  /*
   // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
      if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
          // Custom initialization
      }
      return self;
  }
  */
  
  
  // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      tableListiTems.delegate = self;
      tableListiTems.dataSource = self;
  
      listDict = @{
                   @"a":
                   @"b", // Register,
                   @"c":
                   @"d",
                   @"e":
                   @"f",
                   @"g":
                   @"h",
                   @"i":
                   @"j",
                   @"k":
                   @"l ",
                   @"m":
                   @"n"};
  
  
  
      lists = @[
          @"a",
          @"b",
          @"c",
          @"d",
          @"e",
          @"f",
          @"g",
          @"h",
          @"i",
          @"j",
          @"k",
          @"l",
          @"m",
          @"n",
          @"o",
          @"p",
          @"q",
          @"r",
          @"s",
          @"t",
          @"u",
          @"v",
          @"w",
          @"x",
          @"y",
          @"z",
          @"1",
          @"2",
          @"3 ",
          @"4 ",
          @"5 ",
          @"6 ",
          @"7 ",
          @"8 ",
          @"9",
          @"0",
          @"12",
  ];
  
  
  }
  
  
  -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  
  {
  
      return [lists count];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *simpleTableIdentifier = @"SimpleTableItem";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
  
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
      }
  
      cell.textLabel.text = [lists objectAtIndex:indexPath.row];
  
      return cell;
  }
  
  
  
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      // Overriden to allow any orientation.
      return YES;
  }
  
  
  - (void)didReceiveMemoryWarning {
      // Releases the view if it doesn't have a superview.
      [super didReceiveMemoryWarning];
  
      // Release any cached data, images, etc that aren't in use.
  }
  
  
  - (void)viewDidUnload {
      [super viewDidUnload];
      // Release any retained subviews of the main view.
      // e.g. self.myOutlet = nil;
  }
  
  
  - (void)dealloc {
      [super dealloc];
  }
  
  
  @end
  </code></pre>