28 lines
771 B
Objective-C
28 lines
771 B
Objective-C
#import "AppDelegate.h"
|
|
#import "ViewController.h"
|
|
|
|
#import "BenchmarkYapCache.h"
|
|
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
{
|
|
[BenchmarkYapCache startTests];
|
|
|
|
// Normal UI stuff
|
|
|
|
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
|
|
|
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
|
|
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil];
|
|
} else {
|
|
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil];
|
|
}
|
|
self.window.rootViewController = self.viewController;
|
|
[self.window makeKeyAndVisible];
|
|
return YES;
|
|
}
|
|
|
|
@end
|