After rotate the image how to merge the rotation image? I using the below code, It
If you want while device orientation use this code
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
//Your cgrectmake for landscape
}
else
{
//Your cgrectmake for Portrait
}
}