pkluz / PKRevealController

PKRevealController is a delightful view controller container for iOS, enabling you to present multiple controllers on top of one another.
Other
3.85k stars 659 forks source link

Show left or right UIViewController programmatically. #220

Open pbassut opened 9 years ago

pbassut commented 9 years ago

I was looking for how I could show a view controller(right or left). I found this issue: https://github.com/pkluz/PKRevealController/issues/158

I knew how it could be solved. Still I went there for a better solution than having to call a method with an argument that's inside the instance that the method is being called in the first place(understand?).

Shouldn't this become a feature request?

Something like: [self.revealController showLeftViewController];

Which would be syntax suggar for: [revealController showViewController:revealController.leftViewController];

What you guys think?

BorisNikolic commented 8 years ago
[self.navigationController.revealController showViewController:self.navigationController.revealController.leftViewController animated:YES completion:^(BOOL finished) {
    // Completition code if any
}];