Updated iOS app for iOS 8 SDK

This commit is contained in:
Pierre-Olivier Latour
2014-10-12 00:47:12 -07:00
parent d7650a71e0
commit 9e8f0e00f3
2 changed files with 3 additions and 4 deletions

View File

@ -534,6 +534,7 @@
"-Wno-padded", "-Wno-padded",
"-Wno-documentation", "-Wno-documentation",
"-Wno-documentation-unknown-command", "-Wno-documentation-unknown-command",
"-Wno-objc-missing-property-synthesis",
); );
}; };
name = Debug; name = Debug;

View File

@ -30,15 +30,12 @@
@interface AppDelegate () <GCDWebUploaderDelegate> { @interface AppDelegate () <GCDWebUploaderDelegate> {
@private @private
UIWindow* _window;
GCDWebUploader* _webServer; GCDWebUploader* _webServer;
} }
@end @end
@implementation AppDelegate @implementation AppDelegate
@synthesize window=_window;
#if !__has_feature(objc_arc) #if !__has_feature(objc_arc)
- (void)dealloc { - (void)dealloc {
@ -50,7 +47,8 @@
#endif #endif
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; CGRect bounds = ([UIScreen instancesRespondToSelector:@selector(nativeBounds)] ? [[UIScreen mainScreen] nativeBounds] : [[UIScreen mainScreen] bounds]);
_window = [[UIWindow alloc] initWithFrame:bounds];
_window.backgroundColor = [UIColor whiteColor]; _window.backgroundColor = [UIColor whiteColor];
[_window makeKeyAndVisible]; [_window makeKeyAndVisible];