SHARE
TWEET

Untitled

a guest Jan 14th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private func updateContentViewWith(viewController: UIViewController, screenTitle: String) {
  2.         self.clearContentView()
  3.        
  4.         self.titleLabel.text = screenTitle
  5.         addChild(viewController)
  6.         viewController.view.frame = self.contentView.bounds
  7.         self.contentView.addSubview(viewController.view)
  8.         viewController.didMove(toParent: self)
  9.     }
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