I have a following static method in one of my utility class
+ (UIImage *) getImage:(NSURL*) fromUrl { //Warning here
NSData *urlData = [NSData dataWithContentsOfURL:fromUrl];
UIImage *image = [[[UIImage alloc] initWithData:urlData] autorelease];
return image;
}
For this method I'm receiving a bellow warning message
warning: incompatible Objective-C types initializing 'struct NSURL *', expected 'struct NSString *'
I did not noticed any exception, is this something I can ignore? Or how can I fix it?