SBSyncController: Difference between revisions

From iPhone Development Wiki
(Created page with "# Kill all applications in switcher <code lang=objc"> [(SBSyncController *)[NSClassFromString(@"SBSyncController") sharedInstance] _killApplications]; //remove the ide...")
(No difference)

Revision as of 15:18, 27 February 2015

  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];
   }