(Xcode 6.4) How can i set initial view controller by code? (I want to set initial view controller for a first launch using this code:
if (![[NSUserDefaults standardUserDefaults] valueForKey:@"firstRunCompleted"])
{
//Here i want to set the initial view
}
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"firstRunCompleted"];
[[NSUserDefaults standardUserDefaults] synchronize];