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)

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