Open xmlhttp opened 7 years ago
How does from the SWRevealViewController to another UIViewController?
這是StoryBoard的,其他的也差不多如此
UIStoryboard main = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]]; UIViewController story = [main instantiateViewControllerWithIdentifier:@"MainVC"];
navController1 = [[UINavigationController alloc] initWithRootViewController:story]; [self.revealViewController setFrontViewController:navController1 animated:NO];
[self.revealViewController revealToggleAnimated:YES];
重點在於
[self.revealViewController setFrontViewController:navController1 animated:NO];
[self.revealViewController revealToggleAnimated:YES];
這兩句
如题