title: NSMutableArray data not loading in tableView in iPhone?
body: <p>I did XML parsing for the content I obtained from WCF Service. I loaded the data in <code>NSMutableArray</code> using <code>NSXMLParser</code>.Now I want that data to be loaded in tableview in a <code>UIView</code>. But I can see the empty tableview being loaded and data doesn't. Couldn't understand where I am going wrong.
  My <code>NSMutableArray</code> is like this:</p>
  
  <pre><code>(
      {
     UserName="Roy";
     Password="126";
  },
      {
      UserName="Joy";
     Password="123";
  },
      {
      UserName="Rony";
     Password="5983";
  }
  -------------
  -------------
  )
  </code></pre>
  
  <p>And the code for UItableView is :</p>
  
  <pre><code>@interface RootViewController : UIViewController&lt;NSXMLParserDelegate,UITableViewDataSource,UITableViewDelegate&gt;
  {
  
    NSMutableArray *arr;
    UITableView *tableView;
  }
  - (void)viewDidLoad
  {
     UITableView* tableView = [[UITableView alloc] initWithFrame:self.view.bounds];
      [self.view addSubview:tableView];    
  }
    -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      return [arr count];
  }
  -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier=@"Cell";
      UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if(cell==nil)
      {
          cell=[[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]autorelease];
      }
      NSString *tempstring=[arr objectAtIndex:indexPath.row];
      cell.textLabel.text=  tempstring;
      return cell;
  
  }
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return 3;
  }   
  </code></pre>
  
  <p>I am getting empty tableview with some empty rows. How can i fix this?</p>