Skip to content

Instantly share code, notes, and snippets.

@anthonycvella
Created February 27, 2013 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonycvella/5050694 to your computer and use it in GitHub Desktop.
Save anthonycvella/5050694 to your computer and use it in GitHub Desktop.
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return [self.JSONResponse count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
cell.textLabel.text = [JSONResponse valueForKeyPath:@"games.homeSchool"];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment