In your storyboard, create a segue from the splash screen view controller to the home page view controller (your splash screen's destination). Rename the segue identifier to "HomePageSegue".
In SplashScreenViewController.m
- (void)viewWillAppear:(BOOL)animated {
[self performSegueWithIdentifier: @"HomePageSegue" sender:self];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"HomePageSegue"]) {
// Get destination view
UIViewController *homeVC = [segue destinationViewController];
// Pass the information to your destination view
[self presentViewController:homeVC animated:YES completion:nil];
}
}
This will present the home page as soon as soon as the splash screen loaded. Feel free to create a timer before [self performSegueWithIdentifier:sender:]
is called.