Ich versuche eine App zu erstellen und es auf iPad UND iPhone laufen zu lassen. Aber ich brauche es so für das iPhone, es würde die Größe abhängig von dem Gerät ändern, das du hast, wie iPhone 6s, oder 4, usw. Was mache ich. Wie kann ich separate Storyboards erstellen?Mehrere Storyboards für iPhone 4,5,6 und 6s
EDIT: Ich habe zur Zeit:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
UIViewController *vc = [storyboard instantiateInitialViewController];
self.window.rootViewController = vc;
}
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainiPad" bundle:[NSBundle mainBundle]];
UIViewController *vc = [storyboard instantiateInitialViewController];
self.window.rootViewController = vc;
}
wie mein Code, also was muss ich hinzufügen, trennen Storyboards zu tun?