Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func showMenu(_ sender: AnyObject) {
- if let vc = NSStoryboard(name: "Main", bundle:nil).instantiateController(withIdentifier: "MyViewController") as? MyViewController {
- self.mainContentView.subviews.forEach({ $0.removeFromSuperview() })
- self.mainContentView.addSubview(vc.view)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement