Here is the code:
if(image == nil)
{
NSURL *url = [NSURL URLWithString:imagePath];
NSData *imageData = [NSData dataWithContentsOfURL:url];
image = [UIImage imageWithData:imageData];
}
add the above code in the addImageParsingWithImageFormattingBlock after
UIImage *image = [UIImage imageNamed:imagePath];
Basically this checks for the remote url path if the existing path is not a local path.
Here is the code:
if(image == nil)
{
NSURL *url = [NSURL URLWithString:imagePath];
NSData *imageData = [NSData dataWithContentsOfURL:url];
image = [UIImage imageWithData:imageData];
}
add the above code in the addImageParsingWithImageFormattingBlock after
UIImage *image = [UIImage imageNamed:imagePath];
Basically this checks for the remote url path if the existing path is not a local path.