How to merge two images after rotate the image?

前端 未结 2 797
遇见更好的自我
遇见更好的自我 2021-01-26 07:46

\"enter

After rotate the image how to merge the rotation image? I using the below code, It

2条回答
  •  鱼传尺愫
    2021-01-26 08:19

    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
    }
    }
    

提交回复
热议问题