Just use the size property of UIImage, for example:
NSURL *url = [NSURL URLWithString:path];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *img = [[UIImage alloc] initWithData:data];
CGSize size = img.size;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…