高解像度の画像を含む UIImageView を作成しました。問題は、その画像の解像度が高すぎて imageView に入れられないことです。imageView のサイズは 92 x 91 です (小さいため)。解像度が高すぎるため、UIImageView で見苦しく見える UIImage が含まれています。では、どうすればその UIImage の解像度を下げることができますか?
UIImageView の私のコード:
UIImageView *myImageView = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:pngFilePath]];
myImageView.frame = CGRectMake(212.0, 27, 92,91);