如何在Swift 3中使用SWRevealViewController制作左滑动菜单栏?

时间:2017-03-16 04:35:40

标签: ios swift3

这是我右侧滑动菜单的代码

if revealViewController() != nil {
        revealViewController().rearViewRevealWidth = 62
        menuButton.target = revealViewController()
        menuButton.action = #selector(SWRevealViewController.revealToggle(_:))

        revealViewController().rightViewRevealWidth = 150
        view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())

    }

enter image description here

0 个答案:

没有答案