i am using your slide menu and thanks.I need to check a condition present a same view controller from side view controller.Its present only one time,the next time the view controller is appear but not changing anything based on my check string.this is my code...
i found solution to my question.i need to disable this property
[[SlideNavigationController sharedInstance]setAvoidSwitchingToSameClassViewController:NO];
i am using your slide menu and thanks.I need to check a condition present a same view controller from side view controller.Its present only one time,the next time the view controller is appear but not changing anything based on my check string.this is my code...
(void)tableView:(UITableView )tableView didSelectRowAtIndexPath:(NSIndexPath )indexPath { UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
// UIViewController *vc ;
if (indexPath.row==0) {
} else if(indexPath.row==1) { NSLog(@"best sellers"); self.CSC=[mainStoryboard instantiateViewControllerWithIdentifier: @"CommonSideClasses"]; self.CSC.chcekString=@"best sellers";
} else if(indexPath.row==2) { NSLog(@"new arrivals"); self.CSC=[mainStoryboard instantiateViewControllerWithIdentifier: @"CommonSideClasses"]; self.CSC.chcekString=@"new arrivals";
} else if(indexPath.row==3) { NSLog(@"sale"); self.CSC=[mainStoryboard instantiateViewControllerWithIdentifier: @"CommonSideClasses"]; self.CSC.chcekString=@"sale";
} else if(indexPath.row==4) { NSLog(@"brands"); } [[SlideNavigationController sharedInstance] popToRootAndSwitchToViewController:self.CSC withSlideOutAnimation:self.slideOutAnimationEnabled andCompletion:nil];
}