From iPhone Development Wiki
Revision as of 15:18, 5 June 2017 by PoomSmart (talk | contribs) (This method no longer works in iOS 10.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


Accessing SBLockScreenViewController's SBLockScreenView (iOS 7 - 9)

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