var sideViewController:YRSideViewController!

sideViewController = YRSideViewController()

sideViewController.rootViewController = navController;

        sideViewController.leftViewController = leftMenu;
        sideViewController.leftViewShowWidth=ScreenWidth-80;
        sideViewController.delegate = self;
        sideViewController.needSwipeShowMenu=true;//默认开启的可滑动展示
        //动画效果可以被自己自定义，具体请看api
        
        //        sideViewController.rootViewMoveBlock = {(rootView,orginFrame,xoffset) -> Void in
        //            rootView?.frame=CGRect(x: xoffset, y: orginFrame.origin.y, width: orginFrame.size.width, height: orginFrame.size.height);
        //        }

        
        window?.rootViewController = sideViewController;