https://github.com/edopelawi/rpsviewcontrollerpresenter
https://github.com/edopelawi/rpsviewcontrollerpresenter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/edopelawi/rpsviewcontrollerpresenter
- Owner: edopelawi
- License: mit
- Created: 2015-04-29T09:10:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T10:13:59.000Z (over 10 years ago)
- Last Synced: 2025-07-06T08:02:03.720Z (3 months ago)
- Language: Objective-C
- Size: 1.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RPSViewControllerPresenter
[](http://cocoapods.org/pods/RPSViewControllerPresenter)
[](http://cocoapods.org/pods/RPSViewControllerPresenter)
[](http://cocoapods.org/pods/RPSViewControllerPresenter)Present your view controller from anywhere with ease!

## Usage
Just call `presentViewControllerToTop:animated` from `[RPSViewControllerPresenter presenter]`, and subscribe to the returned `RACSignal` to receive the completion.
```objc
UIViewController *viewController = [UIViewController new];
[[[RPSViewControllerPresenter presenter] presentViewControllerToTop:viewController animated:YES] subscribeNext:^(id x){
NSLog(@"Presenting completed!");
}];
```## Installation
RPSViewControllerPresenter is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "RPSViewControllerPresenter"
```## Author
Ricardo Pramana Suranta, ricardo.pramana@gmail.com
## License
RPSViewControllerPresenter is available under the MIT license. See the LICENSE file for more info.