How To Rotate UIAlertController in Swift ?

In the previous tutorial We are already learn about the UIAlertViewController in Swift. And Also learn the customise the UIAlertViewController.



Code :
let alert = UIAlertController(title: "iOSDevCenters", message: "https://iosdevcenters.blogspot.com", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Okay", style: .default){(action)->() in })
self.present(alert, animated: true, completion: {() -> Void in
  alert.view.transform = CGAffineTransform(rotationAngle: CGFloat(-Double.pi/2) )
})

Output : 






Send your response on comment for more topics.

Thanks

How To Rotate UIAlertController in Swift ? How To Rotate UIAlertController in Swift ? Reviewed by KIRIT MODI on 10:20:00 Rating: 5

No comments:

Powered by Blogger.