| 

.NET C# Java Javascript Exception

2
Ich möchte gerne in meine App 4 Storyboards verbauen um selektieren zu können zwischen

IOS6.xx 4 Zoll
IOS6.xx 3,5 Zoll
IOS7.xx 4 Zoll
IOS7.xx 3,5 Zoll

hab versucht es in meine AppDelegate.m einzubauen komm aber irgendwie nicht weiter, könnt ihr mir da helfen ? DANKE

ich verwende Xcode 5

im moment switche ich nur zwischen IOS7 und IOS6 Storyboard im 4 Zoll Display
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{



#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define iOS_7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7")

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:iOS_7_OR_LATER ? @"Storyboard-IOS7-4" : @"Storyboard-IOS6-4" bundle:nil];
self.window.rootViewController = [storyboard instantiateInitialViewController];
[self.window makeKeyAndVisible];



veruche ergaben leider nichts

mein bugi code :(

- (void)loadStoryboards
{
CGSize iOSDeviceScreenSize = [[UIScreen mainScreen] bounds].size;

UIStoryboard *mainStoryboard = nil;
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0"))

NSLog(@"1");
if (iOSDeviceScreenSize.height == 480)
{
mainStoryboard = [UIStoryboard storyboardWithName:@"Storyboard-IOS6-35" bundle:nil];
} else {
NSLog(@"2 loading Iphone5 Ios6 Board");
mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
}

if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))

NSLog(@"3");
if (iOSDeviceScreenSize.height == 480)
{

mainStoryboard = [UIStoryboard storyboardWithName:@"Storyboard-IOS7-35" bundle:nil];
} else {
NSLog(@"4");
mainStoryboard = [UIStoryboard storyboardWithName:@"Storyboard-iOS7" bundle:nil];
}


self.initialViewController = [mainStoryboard instantiateInitialViewController];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = self.initialViewController;
[self.window makeKeyAndVisible];
}
News:
25.10.2013
snuffy 231 1 5
snuffy 231 1 5