From iPhone Development Wiki
Revision as of 13:59, 11 August 2015 by Uroboro (talk | contribs) (Added Navbox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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