How to programmatically rotate the view by 180 degrees on iOS?

后端 未结 7 1148
面向向阳花
面向向阳花 2021-02-04 10:15

How to programmatically rotate the view by 180 degrees in my iPhone App?

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 11:12

    Simple solution:

    view.transform = CGAffineTransformMakeRotation(degrees*M_PI/180);
    

提交回复
热议问题