IOS: rotate an uiimageview

前端 未结 3 1403
执念已碎
执念已碎 2021-01-05 06:37

in my app I have an imageview, its name is arrow and I rotate it of 180 degrees in this way:

arrow.transform = CGAffineTransformMakeRotation(M_PI);
         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 06:50

    Try setting the transform property back to the identity matrix. i.e. CGAffineTransformIdentity

提交回复
热议问题