Latest 1.0.0
Homepage https://github.com/DeveloperLx/LxTabBarController
License Apache
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors
Inherited from UITabBarController. To change UITabBarController interactive mode, LxTabBarController add a powerful gesture you can switch view controller by sweeping screen from left the right or right to left.
  • demo

Installation

You only need drag LxTabBarController.h and LxTabBarController.m to your project.

Podfile

pod 'LxTabBarController', '~> 1.0.0'

Support

Minimum support iOS version: iOS 7.0

Usage

Use LxTabBarController as same as UITabBarController.

    ViewController * vc1 = [[ViewController alloc]init];
    UINavigationController * nc1 = [[UINavigationController alloc]initWithRootViewController:vc1];

    ViewController * vc2 = [[ViewController alloc]init];
    UINavigationController * nc2 = [[UINavigationController alloc]initWithRootViewController:vc2];

    ViewController * vc3 = [[ViewController alloc]init];
    UINavigationController * nc3 = [[UINavigationController alloc]initWithRootViewController:vc3];

    ViewController * vc4 = [[ViewController alloc]init];
    UINavigationController * nc4 = [[UINavigationController alloc]initWithRootViewController:vc4];

    LxTabBarController * tabBarController = [[LxTabBarController alloc]init];
    tabBarController.viewControllers = @[nc1,nc2,nc3,nc4];

BE CAREFUL!

The gesture for switching tab has risk to cause conflict to other gestures, you can set tabBarController.panToSwitchGestureRecognizerEnabled = NO to forbid it.

License

LxTabBarController is available under the Apache License 2.0. See the LICENSE file for more info.

Latest podspec

{
    "name": "LxTabBarController",
    "version": "1.0.0",
    "summary": "Change UITabBarController interactive mode",
    "homepage": "https://github.com/DeveloperLx/LxTabBarController",
    "license": "Apache",
    "authors": {
        "DeveloperLx": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/DeveloperLx/LxTabBarController.git",
        "tag": "1.0.0"
    },
    "source_files": "LxTabBarController/LxTabBarController.*",
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This