SBMainSwitcherViewController: Difference between revisions

From iPhone Development Wiki
(Created page with "'''SBMainSwitcherViewController''' is a UIViewController responsible for displaying the app switcher on iOS 9+. == Getting list of apps == <source lang="objc"> SBMainSwi...")
 
(No difference)

Latest revision as of 22:07, 29 April 2021

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