SHARE
TWEET

Untitled

a guest May 16th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // A
  2. let vc = self.storyboard?.instantiateViewController(withIdentifier: "CustomAlertViewController") as! CustomAlertViewController
  3. vc.view.backgroundColor = UIColor.black.withAlphaComponent(0.6)
  4. vc.textBody.text = "Add an answer before you submit"
  5. self.addChild(vc)
  6. self.view.addSubview(vc.view)
  7.  
  8. // B
  9. let vc = self.storyboard?.instantiateViewController(withIdentifier: "CustomAlertViewController") as! CustomAlertViewController
  10. vc.view.backgroundColor = UIColor.black.withAlphaComponent(0.6)
  11. vc.textBody.text = "Answer must only contain numbers!"
  12. self.addChild(vc)
  13. self.view.addSubview(vc.view)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top