I present signup view controller modally from login view controller. My initial view controller is login view controller and when I present signup view controller modally, there is nothing wrong, but something wrong is occurring when I use ECSlidingViewController to reset top view on logout. I use following code to reset top view to login view controller on logout.
UIViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Login"];
[self.slidingViewController anchorTopViewOffScreenTo:ECRight animations:nil onComplete:^{
self.slidingViewController.topViewController = newTopViewController;
[self.slidingViewController resetTopView];
}];
When I present signup view modally after reseting top view with ECSlidingViewController, the presentingViewController property of signup view controller is set to another view controller, not login view controller.
I know that it is really hard to grasp the essence of the question, but If anyone needs any more detail so that they can answer this question, feel free to :)