viewDidLoadメソッドの書き込みでRECORD_PAGEビューコントローラであなたがRecord_Pageビューコントローラをナビゲート
let sliderMenu = LeftMenuVC(nibName: "LeftMenuVC", bundle: nil)
let rightVC = RecordPageViewController(nibName: "RecordPageViewController", bundle: nil)
let left = UINavigationController(rootViewController: sliderMenu)
let right = UINavigationController(rootViewController: rightVC)
let swReveal = SWRevealViewController(rearViewController: left, frontViewController: right)
swReveal.rearViewRevealWidth = (view?.frame.width)!/2
swReveal.bounceBackOnOverdraw = false
swReveal.setFrontViewPosition(FrontViewPosition.Left, animated: true)
self.navigationController?.pushViewController(swReveal, animated: true)
お問合せ先ビューコントローラでこのコードを入力してください:
let leftSide = UIBarButtonItem(image: UIImage(named: "menu-icon"), style: .Plain, target: self.revealViewController(), action: #selector(self.revealViewController().revealToggle(_:)))
navigationItem.leftBarButtonItem = leftSide
navigationController?.navigationBarHidden = false
self.view.addGestureRecognizer(revealViewController().panGestureRecognizer())
self.view.addGestureRecognizer(revealViewController().tapGestureRecognizer())
それがうまく私の答えの下に使用して、私が希望して下さいあなたのためにも働く –