         leftVC.didMoveToParentViewController(containVC)
         
         // 添加一个按钮在左上角
-        containVC.view.addSubview(menuButton)
+        rightVC.view.addSubview(menuButton)
         self.menuButton.addTarget(self, action: "menuButtonAction:", forControlEvents: UIControlEvents.TouchUpInside)
         
         // 设置约束

    }
    
    func changeLeftSpace(space:CGFloat) {
        leftVC.view.animation.makeWidth(space).anchorLeft.animate(0.3)
        rightVC.view.animation.makeX(space).animate(0.3)
    }
}

        }
        
        menuButton.snp_makeConstraints { (make) -> Void in
            make.left.equalTo(rightVC.view.snp_left)
            make.top.equalTo(rightVC.view.snp_top)
            make.width.equalTo(menuButton.frame.width)
            make.height.equalTo(menuButton.frame.height)
        }
