Difference between revisions of "SBAppSliderController"

From iPhone Development Wiki
Jump to: navigation, search
m (Determining if switcher is visible/showing)
m
Line 2: Line 2:
  
 
== Activating the app switcher ==
 
== Activating the app switcher ==
 
* Pre iOS 7:
 
  
 
<source lang=objc>
 
<source lang=objc>
[[SBUIController sharedInstance] activateSwitcher];
+
// Pre iOS 7
</source>
+
[[%c(SBUIController) sharedInstance] activateSwitcher];
  
* Post iOS 7:
+
// iOS 7
<source lang=objc>
+
[[%c(SBUIController) sharedInstance] _activateAppSwitcherFromSide:2];
[[SBUIController sharedInstance] _activateAppSwitcherFromSide:2];
 
 
</source>
 
</source>
  
 
== Toggling the app switcher ==
 
== Toggling the app switcher ==
 
<source lang=objc>
 
<source lang=objc>
[[SBUIController sharedInstance] _toggleSwitcher];
+
[[%c(SBUIController) sharedInstance] _toggleSwitcher];
 
</source>
 
</source>
  

Revision as of 11:29, 12 March 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]