Closed interchen closed 9 years ago
Hi. That may not be compatible with story boards. I know that I use a trick to preload the view which may not be compatible with your use. I would advise to design on your own the left view with a nib or manually
Thanks. Is there any plan for storyboard? I think storyboard will be more important for developing in the future.
Here is my code:
[super viewDidLoad]; ...
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil]; self.sceneNavigationController = [story instantiateViewControllerWithIdentifier:@"sceneNavigationController"]; self.homeRightNavigationController = [story instantiateViewControllerWithIdentifier:@"homeRightNavigationController"];
}
// iPhone if (!isiPad) { [self.revealSideViewController preloadViewController:self.sceneNavigationController forSide:PPRevealSideDirectionLeft withOffset:kRevealOffset];
}
(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// iPhone if (!isiPad) { [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(preloadLeft) object:nil]; [self performSelector:@selector(preloadLeft) withObject:nil afterDelay:0.3]; }
}
pragma mark - actions
(IBAction)handleShowLeftButton:(id)sender {
[self.revealSideViewController pushViewController:self.sceneNavigationController onDirection:PPRevealSideDirectionLeft withOffset:kRevealOffset animated:YES]; }