抽屉视图第三方控件

抽屉视图  第三方控件   ViewDeck

IIViewDeckController.h

IIViewDeckController.m

IIWrapController.h

IIWrapController.m

AppDelegate.h 代码示范

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    self.window = [[UIWindowalloc] initWithFrame:[[UIScreenmainScreen] bounds]];

    // Override point for customization after application launch.

    self.window.backgroundColor = [UIColorwhiteColor];

    

    //主页

    HomePageViewController *homePageViewCtl = [[HomePageViewControlleralloc]init];

    FunshionNavgationController * navgationCtl = [[FunshionNavgationControlleralloc]initWithRootViewController:homePageViewCtl];

    

    //侧边栏

    LeftSliderBarViewController *leftSlderBarCtl = [[LeftSliderBarViewControlleralloc]init];

    

    IIViewDeckController *mainCtrl = [[IIViewDeckController alloc] initWithCenterViewController:navgationCtl  leftViewController:leftSlderBarCtl];

    [mainCtrl setLeftSize:80];

    

    self.window.rootViewController = mainCtrl;

    [self.windowmakeKeyAndVisible];

    

    returnYES;

}

原文地址:https://www.cnblogs.com/417460188dy/p/3419040.html