I am adding a simple UIView to my app. This works fine, until I use the 'transform' property to rotate it:
myView = [[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];
myView.backgroundColor = [UIColor whiteColor];
myView.transform = CGAffineTransformMakeRotation(-0.2);
[self.view addSubview:myView]; //self.view is just another generic UIView
The added view is rotated, but has jagged edges - i.e. the edges have not been anti-aliased. Here's an example of what I mean: aliased vs. anti-aliased edges.
So far, I haven't been able to find any way of fixing it - but surely, it can't be that hard just to rotate a UIView? (The same also applies for a UIImageView, I've tried both).
Any help or ideas would be much appreciated.