Я пытаюсь загрузить другую раскадровку, но получаю эту ошибку. Ожидается, что окна приложений будут иметь корневой контроллер представления в конце запуска приложения. Может кто-нибудь мне помочь
- (UIStoryboard *)grabStoryboard {
UIStoryboard *storyboard;
// detect the height of our screen
int height = [UIScreen mainScreen].bounds.size.height;
if (height == 480) {
storyboard = [UIStoryboard storyboardWithName:@"iPhone_4" bundle:nil];
// NSLog(@"Device has a 3.5inch Display.");
}
if(height == 568)
{
storyboard = [UIStoryboard storyboardWithName:@"iPhone_5" bundle:nil];
// NSLog(@"Device has a 4inch Display.");
}
if(height == 667)
{
storyboard = [UIStoryboard storyboardWithName:@"iPhone_6" bundle:nil];
// NSLog(@"Device has a 4inch Display.");
}
if(height == 736)
{
storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
// NSLog(@"Device has a 4inch Display.");
}
return storyboard;
}