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
Thanks
How To Rotate UIAlertController in Swift ?
Reviewed by KIRIT MODI
on
10:20:00
Rating:
![How To Rotate UIAlertController in Swift ?](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh86L2WrArkt07Xp5mk2RpKIv8N8vTHVZZRhVtskta0wxWKfnW9i-60v1UO-5rhGRmspXXGSfBWVy2sXLQxskssUr-FcLWOcz8M0tJjwEuXkGfEPYNMJjxJdA3DfzV7qX_vSN_sRdt23zY/s72-c/Untitled-2-Recovered.png)
No comments: