2011-10-29 17 views

答えて

0

は、ここで私は私のウェブサーバから画像を取得するために私のアプリで使用されるコードです:

//enter your image URL as the string and everything else should work for you 
NSURL *imgURL = [NSURL urlWithString:@"http://www.mysite.com/Images/MyImage.png"]; 
NSData *data = [NSData dataWithContentsOfURL:imgURL]; 
UIImage *image = [UIImage imageWithData:data]; 

detailViewController.iPadView.image = image; 

は、この情報がお役に立てば幸い!

関連する問題