I want to rotate a view programmatically for that I have used below code:
CGAffineTransform rotateTransform = contentView.transform;
CGAffineTransform rotatenewTransform = CGAffineTransformRotate(rotateTransform,aFloatRotate);
contentView.transform = rotatenewTransform;
When I do this the width and height of contentView (my UIView) increase.
What should I do so that contentView remains as it is and it rotates too?
thanks in advance.
Here i am explaining my problem in more details :
my contentview contains a buttons and a imageView in it. this contentView added in a background and this contentView should not go out of this background boundry.
but when i rotate this contentview by upper code, widht and height of contentView increases and so some times it goes out of background boundry.
I hope this will be clear to you. :)