Latest 0.0.7
Homepage https://github.com/yangmiemie1116/PSRouter
License MIT
Platforms ios 8.0, requires ARC
Authors

PSRouter is a good way to realise slide transition between Controller, it is fit for MVVM. you don’t need to import controller head file, just register it in AppDelegate.

Podfile

target 'TargetName' do
pod 'PSRouter'
end

register Controller in didFinishLaunchingWithOptions

[[PSRouter shareInstance] registerClass:[ViewController class] protocol:@protocol(protocol)];

Parameters

you should use protocol to pass parameters

@protocol protocol<NSObject>
@property (nonatomic, strong) id para;
、、、
@end

the registered controller should conforms to protocol which is registered in PSRouter

@interface ViewController ()<protocol>
@end
@implementation ViewController
@synthesize para = _para;
@end

push or present Controller

present style pass YES to isModel

[[PSRouter shareInstance] openScheme:<#(nonnull Protocol *)#> property:<#^(id  _Nullable x)property#> isModel:<#(BOOL)#>]

Default is push stype

[[PSRouter shareInstance] openScheme:@protocol(protocol) property:^(id<protocol>target) {
        target.buttonTitle = @"Sectond";
    }];

Latest podspec

{
    "name": "PSRouter",
    "version": "0.0.7",
    "summary": "u9875u9762u8df3u8f6cu8defu7531",
    "description": "u9875u9762u4e4bu95f4u8df3u8f6cu8defu7531",
    "homepage": "https://github.com/yangmiemie1116/PSRouter",
    "license": "MIT",
    "authors": {
        "u6768u5fd7u5f3a": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/yangmiemie1116/PSRouter.git",
        "tag": "0.0.7"
    },
    "source_files": "PSRouter/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This