hi,
i want to use an image in a UIButton buttonHeader
background,
when i compile it i get an error that buttonHeader
is not an image type, what property to use?
- (void)downloadImageHeader
{
NSMutableURLRequest *requestWithBodyParams = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.../imageHeader.png"]];
NSData *imageData = [NSURLConnection sendSynchronousRequest:requestWithBodyParams returningResponse:nil error:nil];
UIImage *image = [UIImage imageWithData:imageData];
buttonHeader = image;
}