UINavigationControllerGameFade 1.0

UINavigationControllerGameFade 1.0

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布最新发布2015年5月

Albert Montserrat 维护。



  • 作者:
  • Albert Montserrat

使用方法

运行示例项目,首先克隆仓库,然后从示例目录运行 pod install

UINavigationControllerGameFade 提供了制作淡入淡出过渡等功能,例如:

推送

SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController pushFadeViewController:sample];

弹出

[self.navigationController popFadeViewController];

重置根视图控制器

SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController resetRootViewController:sample andPop:YES];

替换当前视图控制器

SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController replaceCurrentViewControllerWithViewController:sample];

或者在堆栈中将当前视图控制器和一些其他视图控制器替换为另一个视图控制器

SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController replaceCountViewControllers:2 withViewController:sample];

测试示例应用以了解该功能的力量!

要求

iOS 6 及以上。

安装

UINavigationControllerGameFade 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod "UINavigationControllerGameFade"

作者

Albert Montserrat,[email protected]

许可

UINavigationControllerGameFade 可在 MIT 许可下使用。有关更多信息,请参阅 LICENSE 文件。