Difference between revisions of "SBAppSliderController"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "To launch the app switcher [[[[SBUIController sharedInstance] _activateAppSwitcherFromSide:2]]]")
 
m
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
To launch the app switcher
+
Notes about the app switcher (called the "app slider" on iOS 7), also known as the "task switcher" or "multitasking switcher".
  
[[[[SBUIController sharedInstance] _activateAppSwitcherFromSide:2]]]
+
== Activating the app switcher ==
 +
 
 +
<source lang=objc>
 +
// Pre iOS 7
 +
[[%c(SBUIController) sharedInstance] activateSwitcher];
 +
 
 +
// iOS 7
 +
[[%c(SBUIController) sharedInstance] _activateAppSwitcherFromSide:2];
 +
</source>
 +
 
 +
== Toggling the app switcher ==
 +
 
 +
<source lang=objc>
 +
[[%c(SBUIController) sharedInstance] _toggleSwitcher];
 +
</source>
 +
 
 +
== Determining if switcher is visible/showing ==
 +
 
 +
<source lang=objc>
 +
[[%c(SBUIController) sharedInstance] isAppSwitcherShowing]
 +
</source>
 +
 
 +
== References ==
 +
 
 +
{{occlass|library=SpringBoard.app|navbox=1}}

Latest revision as of 14:03, 11 August 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
[[%c(SBUIController) sharedInstance] activateSwitcher];

// iOS 7
[[%c(SBUIController) sharedInstance] _activateAppSwitcherFromSide:2];

Toggling the app switcher

[[%c(SBUIController) sharedInstance] _toggleSwitcher];

Determining if switcher is visible/showing

[[%c(SBUIController) sharedInstance] isAppSwitcherShowing]

References