Reputation: 11
I'm trying to enter static text in a detailTextLabel which gives the information that is being pulled in some context.
At the moment I have [[cell detailTextLabel] setText: [[artist valueForKey:@"listeners"] description]];
Which works great for pulling the number of listeners, however I want the cell to show something like "Listeners : (number of listeners)".
What I can't get to work here is having the "Listeners : " before the number which is pulled from the JSON.
Upvotes: 0
Views: 72
Reputation: 1437
NSString *listeners = [NSString stringWithFormat:@"Listeners: %i", [[artist valueForKey:@"listeners"] description]];
cell.detailTextLabel.text = listeners;
Upvotes: 0