SBSyncController

From iPhone Development Wiki
Revision as of 15:18, 27 February 2015 by Twodayslate (talk | contribs)
      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];
   }