cocoa touch - iPhone: problem rotating a UIView - doesn't look right -


I am adding a simple UIView to my app. It works fine, as long as I do not use the 'Transform' property to change it:

  myView = [[UIView alloc] initWithFrame: CGRactMake (50, 50, 100, 100)]; MyView.backgroundColor = [UIColor whiteColor]; MyView.transform = CFE Refined Transformer (-0.2); [Self.view addSubview: myView]; //self.view Just another normal UIView   

added view has been rotated, but jagged edges - i.e. the edges have not been antialized. Here's an example of what I mean:.

So far, I have not found any way to fix it - but of course, it can not be difficult to just rotate a UIView? (This also applies to a UIImageView, I've tried both).

Any help or ideas will be highly appreciated.

I have worked hard to explain what's going on, but I know that I This problem has been seen and one solution is to wrap your view to each other or to some transparent border. Therefore, for example, add a view to another UIView that is INSE-4 or so many around.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -