Merge pull request #32 from yaonie084/master

fix README.md for use cordovar 4.x
This commit is contained in:
qinghe.zhang 2015-03-19 15:29:27 +08:00
commit 6d668101c5

View File

@ -56,7 +56,11 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
#if __has_feature(objc_arc)
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
#else
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
#endif
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
// Required
@ -232,7 +236,11 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#if __has_feature(objc_arc)
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
#else
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
#endif
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];