[IOS] - IOS 외부 이미지 불러오기, URL Image

IOS ( Object-C ) 2014. 7. 18. 08:49
반응형

NSString *attach = @"http://mrkn.tistory.com";


NSURL *url        = [NSURL URLWithString:attach];

NSData *imageFile = [NSData dataWithContentsOfURL:url];

UIImage *image    = [UIImage imageWithData:imageFile];


CGSize imageSize  = image.size;


NSLog(@" Image Size : Width = %f Height = %f", imageSize.width, imageSize.height);

반응형
: