SBMainSwitcherViewController

From iPhone Development Wiki
Revision as of 22:07, 29 April 2021 by MTAC (talk | contribs) (Created page with "'''SBMainSwitcherViewController''' is a UIViewController responsible for displaying the app switcher on iOS 9+. == Getting list of apps == <source lang="objc"> SBMainSwi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

SBMainSwitcherViewController is a UIViewController responsible for displaying the app switcher on iOS 9+.

Getting list of apps

SBMainSwitcherViewController *switcher = [%c(SBMainSwitcherViewController) sharedInstance];
NSArray *recentApps = switcher.recentAppLayouts; // Objects are of type SBAppLayout