请选择 进入手机版 | 继续访问电脑版
查看: 1022|回复: 0

[Android教程] iOS 屏锁:JKLLockScreenViewController

3万

主题

3万

帖子

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
100197
发表于 2016-1-6 18:42:06

JKLLockScreenViewController 是 iOS 上的屏锁控制。

Overview

It is Lock Screen Controller on platform iOS.

Feature Touch ID IB_DESIGNABLE Autolayout Localization Installation

Add the files to your project manually by dragging the JKLLockScreenViewController directory into your Xcode project.

Usage
  1. // Import the class
  2. #import "JKLLockScreenViewController.h"
  3. ...
  4. // ---------------------------------------------------
  5. // ex) JKLLockScreenViewController in UIViewController ...
  6. // ---------------------------------------------------
  7. // add UIViewController
  8. JKLLockScreenViewController * viewController = [[JKLLockScreenViewController alloc] initWithNibName:NSStringFromClass([JKLLockScreenViewController class]) bundle:nil];
  9. [viewController setLockScreenMode:{{lock screen mode}}]; // enum { LockScreenModeNormal, LockScreenModeNew, LockScreenModeChange }
  10. [viewController setDelegate:self];
  11. [viewController setDataSource:self];
  12. [self presentViewController:viewController animated:YES completion:NULL];
  13. ...
  14. // ---------------------------------------------------
  15. // Delegate
  16. // ---------------------------------------------------
  17. - (void)unlockWasSuccessfulLockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController pincode:(NSString *)pincode; // support for number
  18. - (void)unlockWasSuccessfulLockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController; // support for touch id
  19. - (void)unlockWasCancelledLockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController;
  20. - (void)unlockWasFailureLockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController;
  21. // ---------------------------------------------------
  22. // Delegate
  23. // ---------------------------------------------------
  24. - (BOOL)lockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController pincode:(NSString *)pincode;
  25. - (BOOL)allowTouchIDLockScreenViewController:(JKLLockScreenViewController *)lockScreenViewController;
  26. ...
复制代码

iOS 屏锁:JKLLockScreenViewController

项目主页:http://www.open-open.com/lib/view/home/1427876731818



回复

使用道具 举报