title: Display Plist into UITableview
body: <p>I want to display <code>Plist</code> to the <code>UITableView</code> .By my below code I can display one key values that is <code>list of states</code>. but i want to display all the values of three tables.</p>
  
  <pre><code>- (id)readPlist:(NSString *)fileName 
  {
  NSData *plistData;
  NSString *error;
  NSPropertyListFormat format;
  id plist;
  
  NSString *localizedPath = [[NSBundle mainBundle] pathForResource:fileName ofType:@"plist"];
  plistData = [NSData dataWithContentsOfFile:localizedPath]; 
  
  plist = [NSPropertyListSerialization propertyListFromData:plistData mutabilityOption:NSPropertyListImmutable format:&amp;format errorDescription:&amp;error];
  if (!plist) {
  NSLog(@"Error reading plist from file '%s', error = '%s'", [localizedPath UTF8String],      [error UTF8String]);
  
  }
  
  return plist;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  // Return the number of rows in the section.
  return [[[self readPlist:@"sample"] objectForKey:@"ListOfStates"] count];
  
  }
  
  
   - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  static NSString *CellIdentifier = @"Cell";
  
   UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
  cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
  }
  
  cell.textLabel.text = [[[self readPlist:@"sample"] objectForKey:@"ListOfStates"] objectAtIndex:indexPath.row];
  
  return cell;}
  </code></pre>
  
  <p>MY output comes only <code>listofkeystates</code> values</p>
  
  <p><img src="https://i.imgur.com/1tGt9.png" alt="enter the image"> 
  is it also possible to display <code>key</code> name with <code>values</code></p>