SBMainSwitcherViewController

From iPhone Development Wiki
Jump to: navigation, search

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