diff --git a/GCDWebServer.xcodeproj/project.pbxproj b/GCDWebServer.xcodeproj/project.pbxproj index c70f4ad..c73b841 100644 --- a/GCDWebServer.xcodeproj/project.pbxproj +++ b/GCDWebServer.xcodeproj/project.pbxproj @@ -534,6 +534,7 @@ "-Wno-padded", "-Wno-documentation", "-Wno-documentation-unknown-command", + "-Wno-objc-missing-property-synthesis", ); }; name = Debug; diff --git a/iOS/AppDelegate.m b/iOS/AppDelegate.m index c3b21dc..dea2da1 100644 --- a/iOS/AppDelegate.m +++ b/iOS/AppDelegate.m @@ -30,15 +30,12 @@ @interface AppDelegate () { @private - UIWindow* _window; GCDWebUploader* _webServer; } @end @implementation AppDelegate -@synthesize window=_window; - #if !__has_feature(objc_arc) - (void)dealloc { @@ -50,7 +47,8 @@ #endif - (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 makeKeyAndVisible];