Difference between revisions of "SBLockScreenViewController"

From iPhone Development Wiki
Jump to: navigation, search
m
(This method no longer works in iOS 10.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''SBLockScreenViewController''' is the controller representing the lockscreen. It hosts an [[SBLockScreenView]]. Available in iOS 7+.
+
'''SBLockScreenViewController''' is the dedicated controller representing the lock screen, hosting an [[SBLockScreenView]] meant to be used in iOS 7 - iOS 9. In iOS 10 and later, [[SBDashBoardViewController]] takes place as the main controller, subclassing [[SBDashBoardPasscodeViewController]] for this specific purpose.
  
 
== Examples ==
 
== Examples ==
=== Accessing SBLockScreenViewController's SBLockScreenView ===
+
=== Accessing SBLockScreenViewController's SBLockScreenView (iOS 7 - 9) ===
 
<source lang="logos">
 
<source lang="logos">
 
SBLockScreenManager *manager = [%c(SBLockScreenManager) sharedInstance];
 
SBLockScreenManager *manager = [%c(SBLockScreenManager) sharedInstance];
Line 10: Line 10:
  
 
== References ==
 
== References ==
{{IPFHeader|SpringBoard|.app}}
+
 
 +
<references/>
 +
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SBLockScreenViewController.h
 +
 
 +
{{occlass|library=SpringBoard.app|navbox=1}}

Latest revision as of 15:18, 5 June 2017

SBLockScreenViewController is the dedicated controller representing the lock screen, hosting an SBLockScreenView meant to be used in iOS 7 - iOS 9. In iOS 10 and later, SBDashBoardViewController takes place as the main controller, subclassing SBDashBoardPasscodeViewController for this specific purpose.

Examples

Accessing SBLockScreenViewController's SBLockScreenView (iOS 7 - 9)

SBLockScreenManager *manager = [%c(SBLockScreenManager) sharedInstance];
SBLockScreenViewController *lockScreenViewController = [manager lockScreenViewController];
SBLockScreenView *lockScreenView = [lockScreenViewController lockScreenView];

References