All for iOS - a site of support of programs for iPhone and iPad
Search
Search text*
Enter text to search
Archive

Review forios.ru on alexa.com
Random user
lsn21
lsn21
Male
Who is online
nobody
1

takru.com

SOCPUBLIC.COM - заработок в интернете!

Прибыль каждые 10 минут!

Create UIImage from URL

Create UIImage from URL


NSString* imageURL = @"http://theurl.com/image.gif";
NSData* imageData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:imageURL]];
	
UIImage* image = [[UIImage alloc] initWithData:imageData];
[imageView setImage:image];
[imageData release];
[image release];

//or nested version

UIImage* myImage = [UIImage imageWithData: 
	[NSData dataWithContentsOfURL: 
	[NSURL URLWithString: @"http://www.mydomain.com/image.png"]]];
[myImageView setImage:myImage];
[myImage release];