UIActionSheet cancel button strange behaviour

Instead of passing the current view controller’s view to the action sheet, use the showFromTabBar: method of UIActionSheet. The Right Way This will give the correct tappable area: [actionSheet showFromTabBar:self.tabBarController.tabBar]; The Wrong Way This will put the tappable area in the wrong place (if you’re using a tab bar or toolbar): [actionSheet showInView:self.view]; If you’re … Read more

How to present iOS UIActionSheet in Swift?

Updated for Swift 4/5 Works for iOS 11-14 Some of the other answers are okay but I ended up mixing and matching a few of them to rather come up with this : @IBAction func showAlert(sender: AnyObject) { let alert = UIAlertController(title: “Title”, message: “Please Select an Option”, preferredStyle: .actionSheet) alert.addAction(UIAlertAction(title: “Approve”, style: .default , … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)