Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBSyncController - iPhone Development Wiki

SBSyncController

From iPhone Development Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Kill all applications in switcher

1. First kill all the applications

[(SBSyncController *)[NSClassFromString(@"SBSyncController") sharedInstance] _killApplications];

2. Then remove the applications from the switcher

iOS 7

[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];

iOS 8

[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];