Difference between revisions of "SBLockScreenViewController"

From iPhone Development Wiki
Jump to: navigation, search
m (References: IPFHeader replacement)
(This method no longer works in iOS 10.)
 
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];

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