Twodayslate (talk | contribs) |
m (Formatting) |
||
Line 1: | Line 1: | ||
= Kill all applications in switcher = | = Kill all applications in switcher = | ||
iOS 8 | 1. First kill all the applications | ||
< | |||
<source lang="objc">[(SBSyncController *)[NSClassFromString(@"SBSyncController") sharedInstance] _killApplications];</source> | |||
2. Then remove the applications from the switcher | |||
iOS 8 | |||
<source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];</source> | |||
iOS 7 | iOS 7 | ||
< | <source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];</source> | ||
Revision as of 15:58, 27 February 2015
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 8
[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];
iOS 7
[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];