喜欢 UINavigationController
的交互式弹出功能吗?但交互式推送哪里去了?这里就有。
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationController.rt_enableInteractivePush = YES;
...
}
- (nullable __kindof UIViewController *)rt_nextSiblingController
{
return [[YourNewViewController alloc] init];
}
InteractivePush 可以通过 CocoaPods 使用。要安装它,只需将以下行添加到您的 Podfile
pod "RTInteractivePush"
Ricky Tan, [email protected]
InteractivePush 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。