diff --git a/src/video/uikit/SDL_uikitappdelegate.h b/src/video/uikit/SDL_uikitappdelegate.h index 36f746dd4..6668d1aa1 100644 --- a/src/video/uikit/SDL_uikitappdelegate.h +++ b/src/video/uikit/SDL_uikitappdelegate.h @@ -24,7 +24,7 @@ @interface SDLUIKitDelegate : NSObject { } -+ (SDLUIKitDelegate *)sharedAppDelegate; ++ (id) sharedAppDelegate; + (NSString *)getAppDelegateClassName; @end diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m index 9a3580051..5b7965562 100644 --- a/src/video/uikit/SDL_uikitappdelegate.m +++ b/src/video/uikit/SDL_uikitappdelegate.m @@ -79,10 +79,10 @@ static void SDL_IdleTimerDisabledChanged(const char *name, const char *oldValue, @implementation SDLUIKitDelegate /* convenience method */ -+ (SDLUIKitDelegate *)sharedAppDelegate ++ (id) sharedAppDelegate { /* the delegate is set in UIApplicationMain(), which is garaunteed to be called before this method */ - return (SDLUIKitDelegate *)[[UIApplication sharedApplication] delegate]; + return [[UIApplication sharedApplication] delegate]; } + (NSString *)getAppDelegateClassName