title: numberOfRowsInSection method is calling two times
body: <p>I am developing a simple table application from appcoda. I have one confusion in <code>numberOfRowsInSection</code> method. When I print the values in console using <strong>NSLog</strong> in <code>numberOfRowsInSection</code> method the console displays the values two times instead of one times that means the <code>numberOfRowsInSection</code> method is called two times. </p>
  
  <p>So can you tell me why this is happening? </p>
  
  <p>Here is my code</p>
  
  <pre><code>@implementation ViewController {
      NSArray *recipes;
  }
  
  - (void)viewDidLoad {
      [super viewDidLoad];
       recipes = [NSArray arrayWithObjects:@"Egg Benedict", @"Mushroom Risotto", @"Full Breakfast", @"Hamburger", @"Ham and Egg Sandwich", @"Creme Brelee", @"White Chocolate Donut", @"Starbucks Coffee", @"Vegetable Curry", @"Instant Noodle with Egg", @"Noodle with BBQ Pork", @"Japanese Noodle with Pork", @"Green Tea", @"Thai Shrimp Cake", @"Angry Birds Cake", @"Ham and Cheese Panini", nil];
  
  }
  </code></pre>
  
  <p>This method prints the values two times in console instead of one time</p>
  
  <pre><code>-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
  
      NSLog(@"No of Recipe :- %d",[recipes count]);
      return [recipes count];
  }
  -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
      static NSString *tableIdentifier = @"recipeCell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:tableIdentifier];
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:tableIdentifier];
      }
      cell.textLabel.text = [recipes objectAtIndex:indexPath.row];
      return cell;
  }
  </code></pre>