One of the specifications of my app is that on tapping a tableView cell, the user will be redirected to the website associated with the cell. Here is the code:
To avoid copy/paste from Saliom's answer you can make such subclass and use it instead of UIAlertController:
UIAlertController
class AlertController: UIAlertController { override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) self.view.layoutIfNeeded() } }