2

I can get the SBApplication instance of the frontmost application, but I need use the instance of UIApplication, just as the result of [UIApplication sharedInstance], but how can I get the UIApplication instance from SBApplication?Thank you!

SBApplication *currentApplication = (SBApplication *)[(SpringBoard *)[objc_getClass("SpringBoard") sharedApplication] _accessibilityFrontMostApplication];
Suge
  • 2,808
  • 3
  • 48
  • 79

0 Answers0