-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSenchaHelperPlug.m
More file actions
27 lines (19 loc) · 843 Bytes
/
SenchaHelperPlug.m
File metadata and controls
27 lines (19 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// SenchaHelperPlug.m
// This little plugin helps to remove the splash screen (Default.png) manually with a
// javascript call after your sencha touch application is fully loaded. This prevents the
// white-screen which normally occurs because phonegap removes the overlay to early.
//
// Created by Christoph Ebert on 6/26/11.
// Copyright 2011 ETITE. All rights reserved.
//
#import "SenchaHelperPlug.h"
@implementation SenchaHelperPlug
- (void) removeSplashScreen:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options {
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
UIImageView *splashScreen = [[window subviews] objectAtIndex:0];
splashScreen.hidden = YES;
// bring mainview to front..
[window bringSubviewToFront:[[window subviews] objectAtIndex:1]];
}
@end