title: Populating TableView with Plist Documents Directory in iOS
body: <ul>
  <li>I'm a newbie to <code>Objective-C</code> so any help is greatly appreciated.  </li>
  <li>I have a <code>TableView</code> that is successfully pulling back the list from my <code>Data.plist</code> file within my Xcode project but I need it to pull from the <strong>Documents Directory</strong>.  </li>
  <li>I have seen many posts about this but can't seem to get it to work for me.  </li>
  <li>Here is my .m file below.  Like I said, it pulls back the data but I need it to be dynamically changed based on my Documents plist copy.  </li>
  </ul>
  
  <p>Thanks in advance!</p>
  
  <pre><code> @synthesize content = _content;
  
   - (NSArray *)content
  {
      if (!_content) {
          _content = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Data" ofType:@"plist"]];
      }
      return _content;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
      return [self.content count];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      // Configure the cell...
      cell.textLabel.text = [[self.content objectAtIndex:indexPath.row] valueForKey:@"Name"];
      cell.detailTextLabel.text = [[self.content objectAtIndex:indexPath.row] valueForKey:@"Score"];
  
      return cell;
  }
  </code></pre>