title: How to populate Plist date to Tableview
body: <p>I created a <code>plist</code> for <code>tableview</code>, but I don't know how to populate the <code>plist</code> in to Xcode (using objective c), nor my <code>plist</code> date.</p>
  
  <pre><code>&lt;plist version="1.0"&gt;    
  &lt;dict&gt;    
      &lt;key&gt;Robert Mitchall&lt;/key&gt;    
      &lt;array&gt;    
          &lt;string&gt;8.png&lt;/string&gt;    
          &lt;string&gt;Hey dude!&lt;/string&gt;    
      &lt;/array&gt;    
      &lt;key&gt;Carrie Ronald&lt;/key&gt;    
      &lt;array&gt;    
          &lt;string&gt;7.png&lt;/string&gt;    
          &lt;string&gt;Lets have a coffe!&lt;/string&gt;    
      &lt;/array&gt;    
      &lt;key&gt;Alicia Donnoven&lt;/key&gt;    
      &lt;array&gt;    
          &lt;string&gt;10.png&lt;/string&gt;    
          &lt;string&gt;Are you around?&lt;/string&gt;    
      &lt;/array&gt;    
      &lt;key&gt;Kenny Jonnes&lt;/key&gt;    
      &lt;array&gt;    
          &lt;string&gt;6.png&lt;/string&gt;    
          &lt;string&gt;About our discussion.&lt;/string&gt;    
      &lt;/array&gt;    
  &lt;/dict&gt;    
  &lt;/plist&gt;    
  </code></pre>
  
  <p>then, I add this code in my view <code>controller.m</code>, for populating.</p>
  
  <pre><code>@interface ViewController ()    
  {    
      NSArray *content;    
  }
  
  -(NSArray *)content    
      {    
          if (!_content) {    
              _content = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Property List" ofType:@"plist"]];    
          }    
          return _content;    
      }    
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section    
  {        
  return [self.content count];    
  }    
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {    
   {        
      static NSString *CellIdentifier = @"Cell";        
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];    
  
  cell.textLabel.text    = [[self.content objectAtIndex:indexPath.row] valueForKey:@"item 0"];        
  
  cell.detailTextLabel.text = [[self.content objectAtIndex:indexPath.row] valueForKey:@"item 1"];    
  return cell;    
  }    
  </code></pre>
  
  <p>I did't get any output showing that I had an error.</p>
  
  <p><a href="https://i.stack.imgur.com/to0Al.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/to0Al.jpg" alt="Results"></a></p>
  
  <p>Actually, I need the main page in table view date to look like it does in this image.</p>
  
  <p><a href="https://i.stack.imgur.com/NXIA4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NXIA4.jpg" alt="Preferred"></a></p>