Push & Present ViewController at any view, just so easy! You can call it Mediator
or Router
- 在任何
view
内进行Push
、Present
,就是这么简单! 你可以叫它中间件
或者路由
。无需提前注册。拿来就用!
Latest release version:
pod "JHPP"
UIViewController *vc = [[UIViewController alloc] init];
vc.title = @"JHPP Push 1";
vc.view.backgroundColor = [UIColor whiteColor];
[JHPP pushVC:vc from:self]; // or [JHPP pushVC:vc from:nil];
dispatch_block_t callback = ^{
[_button setTitleColor:[UIColor redColor] forState:0];
};
NSMutableDictionary *mdic = @{}.mutableCopy;
[mdic setValue:@"跳转事件:在上一个控制器的 Cell 内" forKey:@"text"];
[mdic setValue:@"JHPP Push 3" forKey:@"title"];
[mdic setValue:callback forKey:@"callback"];
[JHPP pushVC:@"JHPPVC3" paramter:mdic from:self]; // or [JHPP pushVC:@"JHPPVC3" paramter:mdic from:nil];
1.add method.
- fetch currentViewController.
1.fix a bug. fetch vc may be nil.
1.add some methods.
1.add some methods.
1.upload.