数字密码锁定功能源码
应用介绍
这是一款可以实现数字密码锁定功能源码,该功能可以给应用添加数字密码锁定功能,以及输入密码解锁功能,现在很多应用都已经采用了该功能,大家也可以研究一下吧。 使用说明: 显示密码锁定视图: [[LTHPasscodeViewController sharedUser] showLockscreen]; Entering foreground and resigning: - (void)applicationWillResignActive:(UIApplication *)application { if ([LTHPasscodeViewController passcodeExistsInKeychain]) { [LTHPasscodeViewController saveTimerStartTime]; if ([LTHPasscodeViewController timerDuration] == 0) [[LTHPasscodeViewController sharedUser] showLockscreen]; } } -(void)applicationWillEnterForeground:(UIApplication *)application { if ([LTHPasscodeViewController passcodeExistsInKeychain] && [LTHPasscodeViewController didPasscodeTimerEnd]) { [[LTHPasscodeViewController sharedUser] showLockscreen]; } }

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 数字密码锁定功能源码
发表评论 取消回复