|
|
|
@ -67,8 +67,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
if (self.cachedImageView == nil) {
|
|
|
|
if (self.cachedImageView == nil) {
|
|
|
|
CGSize size = [self mediaViewDisplaySize];
|
|
|
|
CGSize size = [self mediaViewDisplaySize];
|
|
|
|
UIImageView *imageView = [[UIImageView alloc] initWithImage:self.image];
|
|
|
|
UIImageView *imageView = [[UIImageView alloc] initWithImage:self.image];
|
|
|
|
imageView.frame = CGRectMake(0.0f, 0.0f, size.width, size.height);
|
|
|
|
|
|
|
|
imageView.contentMode = UIViewContentModeScaleAspectFill;
|
|
|
|
imageView.contentMode = UIViewContentModeScaleAspectFill;
|
|
|
|
|
|
|
|
imageView.frame = CGRectMake(0.0f, 0.0f, size.width, size.height);
|
|
|
|
imageView.clipsToBounds = YES;
|
|
|
|
imageView.clipsToBounds = YES;
|
|
|
|
// Use trilinear filters for better scaling quality at
|
|
|
|
// Use trilinear filters for better scaling quality at
|
|
|
|
// some performance cost.
|
|
|
|
// some performance cost.
|
|
|
|
|