Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //MARK: UI
- extension ChooseImageViewController{
- func showError(errorMessage : String){
- let alertController = UIAlertController(title: "Error", message: errorMessage, preferredStyle: .alert)
- let action = UIAlertAction(title: "dismiss", style: .default)
- alertController.addAction(action)
- self.present(alertController, animated: true, completion: nil)
- }
- func showResultScreen(image : UIImage,resultString : String){
- let vc = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "ResultViewController") as! ResultViewController
- vc.image = image
- vc.resultString = resultString
- self.navigationController?.pushViewController(vc, animated: true)
- }
- }
Add Comment
Please, Sign In to add comment