2

My UITabBarController caching everything about before selected item, It's nice but I want to dismiss each segue presented by me When I have clicked displayed view's item, twice consecutive same page.

How and What I need to do to provide this case? Detailed answer for solution It would be great.

iamburak
  • 3,508
  • 4
  • 34
  • 65

1 Answers1

0

Use tabbarControler delegate method

- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController
{
if (alreadyPushed){
return false
}
return true
}
Ahmad Ishfaq
  • 914
  • 1
  • 8
  • 10