title: Stanford cs193p Fall 2011 course made a mistake in lecture 9?
body: <p>In lecture 9, the teacher said that numberOfSectionsInTableView: method returns 1 by default, but when I created my own project, I found that it returns 0 by default, and that made my table view cell disappeared! I found where the problem was and fixed it by making the numberOfSectionsInTableView: return 1, problem gone. So, that means Stanford made a mistake?</p>
  
  <p>When I added a new subclass of UITableViewController, in the .m file, Xcode generated the following code:</p>
  
  <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
  #warning Potentially incomplete method implementation.
      // Return the number of sections.
      return 0;
  }
  </code></pre>
  
  <p>I'm using Xcode 4.3.3 by the way...</p>