romaonthego / REFrostedViewController

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

Bug in setContentViewController: #144

Closed giuseppenucifora closed 8 years ago

giuseppenucifora commented 8 years ago

if you init Reveal like this :

_revealController = [[REFrostedViewController alloc] initWithContentViewController:_authNavigationController menuViewController:_menu];

and after you set ContentViewController like this

[_revealController setContentViewController:_appNavigationController];

the view of the controller shown is that of _authNavigationController and not _appNavigationController.

The bug is in setContentViewController and this is the solution :

When _contentViewController is setted before viewDidLoad.