github: https://github.com/Draveness/SpaceShuttle
使用 push present 操作时, 为 viewcontroller 传值是一件非常容易的事情,
但是在 dismiss 或 pop 的时候, 为视图传值却有一些麻烦
SpaceShuttle 为视图间传值提供了统一的接口.
Push
[self.navigationController pushViewController:succViewController
animated:YES
supplies:@{@"test":@1}];
Pop
[self.navigationController popViewControllerAnimated:YES
supplies:@{@"test": @1}];
Present
[self presentViewController:succViewController
animated:YES
completion:nil
supplies:@{@"test":@1}];
Dismiss
[self dismissViewControllerAnimated:YES
completion:nil
supplies:@{@"test":@1}];
https://github.com/Draveness/SpaceShuttle
代码实现还是蛮简单的, 不过现在不知道该加一些其他的什么功能了, 求各位 V 友的建议~~