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

SBAppSwitcherModel: Difference between revisions

From iPhone Development Wiki
(Created page with "To get the list of recently opened apps (the list in the app switcher) iOS7 [[%c(SBAppSwitcherModel) sharedInstance] identifiers]; iOS8 %c(SBAppSwitcherModel) sharedInst...")
 
(formatting)
Line 1: Line 1:
To get the list of recently opened apps (the list in the app switcher)
To get the list of recently opened apps (the list in the app switcher).


iOS7
== iOS 7 ==


<source lang=objc>
[[%c(SBAppSwitcherModel) sharedInstance] identifiers];
[[%c(SBAppSwitcherModel) sharedInstance] identifiers];
</source>


iOS8
== iOS 8 ==


<source lang=objc>
[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];
[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];
</source>
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 06:57, 3 November 2014

To get the list of recently opened apps (the list in the app switcher).

iOS 7

[[%c(SBAppSwitcherModel) sharedInstance] identifiers];

iOS 8

[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];