data type issue with image URL

I'm sure this is an easy fix, but I can't seem to work it out...

group[PF_GROUP_FEATURED] is just a database reference to a URL. I am trying to get these images to show up in my tableView cells.

My error is "incompatible pointer types sending UIImage to parameter type NSString.."

UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:group[PF_GROUP_LOGO]]]];
    cell.imageView.image = [UIImage imageNamed:image];

Answers


cell.imageView.image = image;

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImage_Class/#//apple_ref/occ/clm/UIImage/imageNamed:


cell.imageView.image = image ;


Need Your Help

log4J: Failure in post-close rollover action using TimeBasedRollingPolicy

log4j

I have setup TimeBasedRollingPolicy to rollout the file every minute (for test purpose) and the problem I am facing is a warning and no zip or gz file is being created. Warning is:

How to Draw a shape or bitmap into another Bitmap , Java/android

java android canvas

I want to draw a shape(many circles particularly) into a Specific Bitmap.