Latest 0.0.7
License MIT
Platforms ios 8.0, requires ARC

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.


target 'TargetName' do
pod 'PSRouter'

register Controller in didFinishLaunchingWithOptions

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


you should use protocol to pass parameters

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

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

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

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": "",
    "license": "MIT",
    "authors": {
        "u6768u5fd7u5f3a": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "0.0.7"
    "source_files": "PSRouter/*.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This