URLから取得した後に画像のサイズを変更する方法を教えてAsyncImageView
ください。これは私が今まで持っているコードです:
NSLog(@"image x:%f y:%f", _imageView.frame.origin.x, _imageView.frame.origin.y);
NSLog(@"image w:%f h:%f", _imageView.frame.size.width, _imageView.frame.size.height);
NSLog(@"image w:%f h:%f", _imageView.image.size.width, _imageView.image.size.height);
_imageView.image = [UIImage imageNamed:@"Placeholder.png"];
//cancel loading previous image for cell
[[AsyncImageLoader sharedLoader] cancelLoadingImagesForTarget:_imageView];
//load the image
_imageView.imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[AppSetting getPkParkingPhotoPath],[_data objectForKey:@"photo"]]];
_imageView.contentMode = UIViewContentModeScaleAspectFill;
NSLog(@"image x:%f y:%f", _imageView.frame.origin.x, _imageView.frame.origin.y);
NSLog(@"image w:%f h:%f", _imageView.image.size.width, _imageView.image.size.height);
画像の実際の寸法を取得し、サイズを変更して幅と動的な高さに合わせたいです。onComplete
どうすればの方法を委任できAsyncImageView
ますか?