JHPP
在任何视图上进行Push和Present ViewController,就这么简单!您可以称它为中介
或路由器
- 在任何
内进行
Push
、Present
,就是这么简单!您可以称之为中间件
或者路由器
。无需预先注册。即拿即用!
版本
最新发布版本
Cocoapods
pod "JHPP"
什么
使用
示例1
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];
示例2
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];
日志
2019-06-20:
1.添加方法。
- 获取当前视图控制器。
2019-06-13:
1.修复一个错误。fetch vc 可能是 nil。
2019-03-25:
1.添加一些方法。
2019-03-05:
1.添加一些方法。
2019-02-27:
1.上传。