Latest 0.1.1
Homepage https://github.com/liujianping/URLTabNavigationController
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

URLTabNavigationController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "URLTabNavigationController"

Quick Start

TabBar Navigation

#import "URLTabNavigationController.h"

//! singleton instance
URLTabNavigationController* tabNavigation = [URLTabNavigationController defaultTabNavigationController];

//! tab navigate url to class name
[tabNavigation navigate:@"/red" title:@"red" image:nil selectedImage:nil className:@"RedViewController"];
[tabNavigation navigate:@"/blue" title:@"blue" image:nil selectedImage:nil className:@"BlueViewController"];
[tabNavigation navigate:@"/yellow" title:@"yellow" image:nil selectedImage:nil className:@"YellowViewController"];

//! tab bar controller initialization
[tabNavigation initialization];

URL Router

#import "URLRouter.h"

//! singleton instance
URLRouter* router = [URLRouter defaultRouter];

//! router map path to class name
[router map:@"/home/:user" withControllerClassName: @"HomeViewController"];
[router map:@"/message" withControllerClassName: @"MessageViewController"];
[router map:@"/mine" withControllerClassName:@"MineViewController"];

//! router map path pattern example
[router map:@"/:name/:age/:hobby" withCompletion: ^(NSURL* url){
    NSLog(@"block exeucte (name: %@) (age: %@) (hobby: %@)", url.queryDictionary[@"name"], url.queryDictionary[@"age"], url.queryDictionary[@"hobby"]);
}];

//! router map path pattern for View Controller
UIViewController* vc = [router viewControllerForPath:@"/home/liujianping"];

//! router map path pattern for excute URL
[router executeURL:[[NSURL alloc] initWithString: @"/liujianping/36/movie"]];

Author

liujianping, [email protected]

License

URLTabNavigationController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "URLTabNavigationController",
    "version": "0.1.1",
    "summary": "SubClass of UITabBarController, support URLRouter and build tab view with UINavigationController directly.",
    "description": "This CocoaPod provides the ability to url route view quickly.nSubClass of UITabBarController, support URLRouter and build tab view with UINavigationController directly.",
    "homepage": "https://github.com/liujianping/URLTabNavigationController",
    "license": "MIT",
    "authors": {
        "liujianping": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liujianping/URLTabNavigationController.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "URLTabNavigationController/Classes/**/*",
    "resource_bundles": {
        "URLTabNavigationController": [
            "URLTabNavigationController/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This