Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertmontserrat/uinavigationcontroller-gamefade
https://github.com/albertmontserrat/uinavigationcontroller-gamefade
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/albertmontserrat/uinavigationcontroller-gamefade
- Owner: AlbertMontserrat
- License: mit
- Created: 2015-05-08T06:16:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-08T08:20:54.000Z (over 9 years ago)
- Last Synced: 2024-04-26T07:43:30.182Z (9 months ago)
- Language: Objective-C
- Size: 195 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UINavigationControllerGameFade
[![CI Status](http://img.shields.io/travis/Albert M/UINavigationControllerGameFade.svg?style=flat)](https://travis-ci.org/Albert M/UINavigationControllerGameFade)
[![Version](https://img.shields.io/cocoapods/v/UINavigationControllerGameFade.svg?style=flat)](http://cocoapods.org/pods/UINavigationControllerGameFade)
[![License](https://img.shields.io/cocoapods/l/UINavigationControllerGameFade.svg?style=flat)](http://cocoapods.org/pods/UINavigationControllerGameFade)
[![Platform](https://img.shields.io/cocoapods/p/UINavigationControllerGameFade.svg?style=flat)](http://cocoapods.org/pods/UINavigationControllerGameFade)## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
UINavigationControllerGameFade gives you the functionality to make fade transitions such as,
Push:
```
SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController pushFadeViewController:sample];
```Pop:
```
[self.navigationController popFadeViewController];
```Reset root view controller:
```
SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController resetRootViewController:sample andPop:YES];
```Replace current view controller with an other view controller:
```
SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController replaceCurrentViewControllerWithViewController:sample];
```Or even replace the current view controller and some other view controllers in the stack with another view controller:
```
SampleViewController *sample = [self.storyboard instantiateViewControllerWithIdentifier:@"sampleviewcontroller"];
[self.navigationController replaceCountViewControllers:2 withViewController:sample];
```Test the sample app to see the power of this features!
## Requirements
iOS 6 and above.
## Installation
UINavigationControllerGameFade is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "UINavigationControllerGameFade"
```## Author
Albert Montserrat, [email protected]
## License
UINavigationControllerGameFade is available under the MIT license. See the LICENSE file for more info.