iOS开发 视图向左或向右旋转

-(void)turnLeft{
    self.transform = CGAffineTransformRotate(self.transform, -M_PI_2);
}

-(void)turnRight{
    self.transform = CGAffineTransformRotate(self.transform, M_PI_2);
}

推荐阅读更多精彩内容