この問題に対する答えのほとんどは、1px の透明な境界線を追加することだと思いますが、UIImageView 自体に境界線があり、それを回転させると境界線が滑らかでない場合、UIImageView の周りに境界線を使用していない場合にのみ機能します。私はまだその問題を解決する方法を見つけようとしています。
この問題を修正するために私がしたことは次のとおりです
UIImage *thumbnail = [photo thumbnailImage:thumbnailSize.width
transparentBorder:2
cornerRadius:0
interpolationQuality:kCGInterpolationHigh];
CGPoint randomPoint = [self getRandomOriginPoint];
UIImageView *thumbnailView = [[UIImageView alloc] initWithFrame:CGRectMake(10.0, 10.0, thumbnail.size.width, thumbnail.size.height)];
[thumbnailView.layer setBorderWidth:2];
[self setContentMode:UIViewContentModeCenter];
[thumbnailView.layer setBorderColor:[UIColor whiteColor].CGColor];
[thumbnailView.layer setShadowOffset:CGSizeMake(-3.0, 3.0)];
[thumbnailView.layer setShadowRadius:3.0];
[thumbnailView.layer setShadowOpacity:1.0];
thumbnailView.layer.shouldRasterize = YES;
hereのUIImage+Resize.h を使用して、コードでサムネイル画像を取得したので、これを使用すると、画像を任意の角度で回転させた後でも、境界線が完全にきれいに見えます!