Skip to content

Commit 2fb14e0

Browse files
committed
Adjusted the build tests' app delegate to be compatible without a storyboard
Reviewers: featherless, #material_components_ios_owners Reviewed By: featherless, #material_components_ios_owners Projects: #material_components_ios_owners Differential Revision: http://codereview.cc/D74
1 parent 479d4ae commit 2fb14e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build_tests/classes/objective_c/MDCBuildTestAppDelegate.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
1616

1717
#import "MDCBuildTestAppDelegate.h"
1818

19+
#import "MDCBuildTestViewController.h"
20+
1921
@implementation MDCBuildTestAppDelegate
2022

21-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
23+
- (BOOL)application:(UIApplication *)application
24+
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
25+
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
26+
self.window.rootViewController = [[MDCBuildTestViewController alloc] init];
27+
[self.window makeKeyAndVisible];
2228
return YES;
2329
}
2430

0 commit comments

Comments
 (0)