SBSyncController

From iPhone Development Wiki
Revision as of 15:18, 27 February 2015 by Twodayslate (talk | contribs) (Created page with "# Kill all applications in switcher <code lang=objc"> [(SBSyncController *)[NSClassFromString(@"SBSyncController") sharedInstance] _killApplications]; //remove the ide...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. Kill all applications in switcher

   [(SBSyncController *)[NSClassFromString(@"SBSyncController") sharedInstance] _killApplications];
   //remove the identifiers from sbappswitchermodel
   if (IS_OS_7_OR_UNDER) {
      [[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];
   }
   else { //iOS 8
      [[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];
   }