Latest 0.0.2
Homepage https://github.com/hcxyzlm/LMPageController
License MIT
Platforms ios 7.0
Dependencies TYPagerController
Authors

基于TYPagerController封装的选项卡,方便集成使用

集成说明

pod "LMPageController"

使用说明

分别实现LMPageTabBar,LMPageTabController的delegate即可

// 新建pagebar
 self.pageTabBar = [[LMPageTabBar alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, GLOBAL_NAVIGATIONBARITEM_HEIGHT) style:[LMPageTabBarStyle defaultStyle]];
    self.pageTabBar.delegate = self;
    self.pageTabBar.dateSource = self;
    [self.view addSubview:self.pageTabBar];

    // 新建pageController
    self.pageController = [[LMPageTabController alloc] initWitPageTabBar:self.pageTabBar];
    self.pageController.view.frame = CGRectMake(0, 108, DEVICE_SCREEN_WIDTH, DEVICE_SCREEN_HEIGHT - GLOBAL_NAVIGATIONBARITEM_HEIGHT);
    self.pageController.delegate = self;
    self.pageController.dataSource = self;
    [self addChildViewController:self.pageController];
    [self.view addSubview:self.pageController.view];

Latest podspec

{
    "name": "LMPageController",
    "version": "0.0.2",
    "summary": "u57fau4e8eTYPagerControlleru7684u9009u9879u5361u5c01u88c5",
    "description": "u57fau4e8eTYPagerControlleru7684u9009u9879u5361u5c01u88c5,u4fbfu4e8eu96c6u6210",
    "homepage": "https://github.com/hcxyzlm/LMPageController",
    "license": "MIT",
    "authors": {
        "zhuo": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/hcxyzlm/LMPageController.git",
        "tag": "v1.0.2"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "dependencies": {
        "TYPagerController": [
            "~> 2.1.2"
        ]
    }
}

Pin It on Pinterest

Share This