如何顺时针旋转90(swift3)

How to rotate 90 clockwise (swift3)

这两行代码生成的图像与我拍摄图像的方式逆时针旋转 90 度。有什么想法可以使用代码将图像顺时针旋转 90 度吗?

  let l = photoDispaly.image

      l?.draw(in: CGRect(x: 10, y: 240.5, width: 435 , height: 435), blendMode: .normal, alpha: 1.0)

通过这行代码可以将图片视图顺时针旋转90度

yourImageView.transform = CGAffineTransform(rotationAngle: CGFloat(M_PI_2))