Difference between revisions of "SBAppSliderController"

From iPhone Development Wiki
Jump to: navigation, search
(Activating the app switcher)
Line 18: Line 18:
 
[[SBUIController sharedInstance] _toggleSwitcher];
 
[[SBUIController sharedInstance] _toggleSwitcher];
 
</source>
 
</source>
 +
 +
== Determining if switcher is visible/showing ==
 +
<source lang=objc>
 +
[[%c(SBUIController) sharedInstance] isAppSwitcherShowing]
 +
</source?
  
 
{{occlass|library=SpringBoard.app|navbox=1}}
 
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 23:16, 12 January 2015

Notes about the app switcher (called the "app slider" on iOS 7), also known as the "task switcher" or "multitasking switcher".

Activating the app switcher

  • Pre iOS 7:
[[SBUIController sharedInstance] activateSwitcher];
  • Post iOS 7:
[[SBUIController sharedInstance] _activateAppSwitcherFromSide:2];

Toggling the app switcher

[[SBUIController sharedInstance] _toggleSwitcher];

Determining if switcher is visible/showing

<source lang=objc> [[%c(SBUIController) sharedInstance] isAppSwitcherShowing] </source?