From: Jay Freeman (saurik) Date: Fri, 5 Apr 2013 23:17:29 +0000 (+0000) Subject: Do not directly link against @class UIApplication. X-Git-Tag: v0.9.3400~24 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/139da478a5529de678866c7cc45e1e316cc64170 Do not directly link against @class UIApplication. --- diff --git a/Tweak.mm b/Tweak.mm index dcc1322..f18bab5 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -51,6 +51,8 @@ #include "SpringBoardAccess.h" +MSClassHook(UIApplication) + extern "C" void CoreSurfaceBufferFlushProcessorCaches(CoreSurfaceBufferRef buffer); static size_t width_; @@ -216,7 +218,7 @@ static void OnUserNotification(CFUserNotificationRef notification, CFOptionFlags SBA_removeStatusBarImage(const_cast("Veency")); else if ($SBStatusBarController != nil) [[$SBStatusBarController sharedStatusBarController] removeStatusBarItem:@"Veency"]; - else if (UIApplication *app = [UIApplication sharedApplication]) + else if (UIApplication *app = [$UIApplication sharedApplication]) [app removeStatusBarImageNamed:@"Veency"]; } @@ -237,7 +239,7 @@ static void OnUserNotification(CFUserNotificationRef notification, CFOptionFlags SBA_addStatusBarImage(const_cast("Veency")); else if ($SBStatusBarController != nil) [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"]; - else if (UIApplication *app = [UIApplication sharedApplication]) + else if (UIApplication *app = [$UIApplication sharedApplication]) [app addStatusBarImageNamed:@"Veency"]; }