Actually the scenerio is very simple: on click back button, view controller navigates to previous view controller that have UICollectionView
in it. I have tried everything but it is not navigating?
I have used stack unwinding using storyboards:
[self dismissPopupViewControllerWithanimationType:MJPopupViewAnimationFade];
[self dismissViewControllerAnimated:YES completion:nil];
NSArray *array = [self.navigationController viewControllers];
[self.navigationController popToViewController:[array objectAtIndex:2] animated:YES];
I have also tried all these in
-(IBAction)
and also used satck unwinding ; but its not working.