i don't understand what the issue seems to be with my app.
I can parse and output the json file, so that a specific label is populated with the name of the artist, the name of the album, as well as the id for the album.
My only issue is making the url appear in place of the label too.
I've double checked the documentation for lastfm, including the sample output, however it still doesn't show the url for a given album.
The code for this specific section is:
#import "MusicDetailsViewController.h"
#import "FilmSearchService.h"
@implementation MusicDetailsViewController
@synthesize imgAlbum;
@synthesize txtAlbumName;
@synthesize txtArtistName;
@synthesize urlOverview;
@synthesize txtUrl;
@synthesize movie;
-(void)viewWillAppear:(BOOL)animated {
if ([self movie] != nil){
[self setTitle:[[self movie] valueForKey:@"name"]];
;
[txtAlbumName setText:[[self movie] valueForKey:@"name"]];
[txtArtistName setText:[[[self movie] valueForKey:@"artist"] description]];
[txtUrl setText:[[self movie] valueForKey:@"id"]];
NSLog(@"value of url = %@", txtUrl);
[urlOverview setText:[[self movie] valueForKey:@"url"]];
}
}
@end
this is the error message I receive when doing that:
*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<MusicDetailsViewController 0x71a84f0> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key txtUrllink.' ***