title: No visible @interface for 'UITableViewCell' declares the selector 'dequeueReusableCellWithIdentifier:'
body: <p>I'm new to Objective-C and have been trying to work with UITableView. Here is the method where I get the error:</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableViewCell *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MainCell"];
  
      if(cell == nil){
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MainCell"];
      }
  }
  </code></pre>
  
  <p>Could anybody help me please?</p>