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: Difference between revisions - iPhone Development Wiki

SBSyncController: Difference between revisions

From iPhone Development Wiki
m (Formatting)
m (Added Navbox)
 
Line 6: Line 6:


2. Then remove the applications from the switcher
2. Then remove the applications from the switcher
iOS 7
<source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];</source>


iOS 8
iOS 8
<source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];</source>
<source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayLayouts"] removeAllObjects];</source>


iOS 7
{{occlass|library=SpringBoard.app|navbox=1}}
<source lang="objc">[[[NSClassFromString(@"SBAppSwitcherModel") sharedInstance] valueForKey:@"_recentDisplayIdentifiers"] removeAllObjects];</source>

Latest revision as of 13:59, 11 August 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 7

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

iOS 8

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