Skip to content

Instantly share code, notes, and snippets.

@premedios
Created September 13, 2012 16:43
Show Gist options
  • Save premedios/3715669 to your computer and use it in GitHub Desktop.
Save premedios/3715669 to your computer and use it in GitHub Desktop.
Listing the name of a song title
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Music Cell"];
NSLog(@"%@", [[self.songsList objectAtIndex:indexPath.row] valueForProperty:MPMediaItemPropertyTitle]);
cell.textLabel.text = [[self.songsList objectAtIndex:indexPath.row] valueForProperty:MPMediaItemPropertyTitle];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment