抽屉视图  第三方控件   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;

}

 

posted on 2013-11-12 10:37  童话DY  阅读(242)  评论(0编辑  收藏  举报