RadioKit.h
defines a protocol StormysRadioKitDelegate
that includes the method SRKMetaChanged
. The demo project suggests using this method to kick off a request for the album artwork.
So you should add something like this to the implementation of this method. It dispatches a network download to a background thread and when it's done it updates the UI on the main thread.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSData *albumArtImageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.ourchurchwebserver.org/nameof.jpg"]];
dispatch_async(dispatch_get_main_queue(), ^{
UIImage *albumArt = [UIImage imageWithData:albumArtImageData];
self.imageEnlarge.internal.image = albumArt;
});
});