Sorry but why you are setting the revealController
as rootViewController
on the UIWindow?
I think that your code above is in your rootViewController
and so from your rootViewController you should use this way to present the revealController
:
[revealController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[self presentViewController:revealController animated:YES completion:nil];
and in the revealController
you will use this way to dismiss and come back to the rootViewController
:
[self dismissViewControllerAnimated:YES completion:nil];