romaonthego / REFrostedViewController

iOS 7/8 style blurred view controller that appears on top of your view controller.
MIT License
2.96k stars 494 forks source link

Showing the REFrostedViewController without adding to the Window RootViewController #81

Closed azamsharp closed 10 years ago

azamsharp commented 10 years ago

I am using the following code to show the menu when a UIBarButtonItem is clicked. It does not do anything:

-(IBAction) showMenu:(id) sender { MenuViewController *menuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MenuViewControllerStoryboard"];

REFrostedViewController *frostedViewController = [[REFrostedViewController alloc] initWithContentViewController:menuViewController menuViewController:menuViewController];

frostedViewController.direction = REFrostedViewControllerDirectionLeft;

[frostedViewController presentMenuViewController];

}

romaonthego commented 10 years ago

Please refer to the example projects.