Guest User

Untitled

a guest
Oct 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. class ControllerA: UIViewController {
  2.  
  3. override var inputAccessoryView: UIView? {
  4. return saveView
  5. }
  6.  
  7. override var canBecomeFirstResponder: Bool {
  8. return true
  9. }
  10.  
  11. @IBAction func openVCB(_ sender: UIButton) {
  12.  
  13. let controllerB = controllerB.instantiate(fromAppStoryboard: .main)
  14. let navigationController = UINavigationController(rootViewController: controllerB)
  15. navigationController.navigationBar.isTranslucent = false
  16. self.present(navigationController, animated: true)
  17. }
  18. }
  19.  
  20. class ControllerB: UIViewController {
  21.  
  22. override var inputAccessoryView: UIView? {
  23. return nil
  24. }
  25.  
  26. override var canBecomeFirstResponder: Bool {
  27. return false
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment