av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

iOS指紋識別的簡單應用

瀏覽:50日期:2022-09-17 09:16:02

指紋識別(Touch ID)的簡單應用,供大家參考,具體內容如下

1、調用

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self setupNotification]; UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; [button setTitle:@'點擊調用' forState:UIControlStateNormal]; [button addTarget:self action:@selector(actionDidClickButton:) forControlEvents:UIControlEventTouchUpInside]; [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal]; [self.view addSubview:button];}- (void)actionDidClickButton:(UIButton *)sender{ [self touchIDTest];}- (void)touchIDTest{ [TouchIDManager validateTouchID];}- (void)setupNotification{ [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionDidReceiveValidateTouchIDSuccess) name:ValidateTouchIDSuccess object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionDidReceiveValidateTouchIDNotAvailable) name:ValidateTouchIDNotAvailable object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionDidReceiveValidateTouchIDNotEnrolled) name:ValidateTouchIDNotEnrolled object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionDidReceiveValidateTouchIDAuthenticationFailed) name:ValidateTouchIDAuthenticationFailed object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionDidReceiveValidateTouchIDCancel) name:ValidateTouchIDCancel object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(actionTouchIDLockout) name:ValidateTouchIDLockout object:nil];}- (void)actionDidReceiveValidateTouchIDSuccess{ NSLog(@'%s',__func__);}- (void)actionDidReceiveValidateTouchIDNotAvailable{ NSLog(@'%s',__func__);}- (void)actionDidReceiveValidateTouchIDNotEnrolled{ NSLog(@'%s',__func__);}- (void)actionDidReceiveValidateTouchIDAuthenticationFailed{ NSLog(@'%s',__func__);}- (void)actionDidReceiveValidateTouchIDCancel{ NSLog(@'%s',__func__);}- (void)actionTouchIDLockout{ NSLog(@'%s',__func__);}- (void)dealloc{ [[NSNotificationCenter defaultCenter]removeObserver:self];}

具體demo

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。

標簽: IOS
相關文章:
主站蜘蛛池模板: 九九久久免费视频 | 日韩视频在线播放 | 伦一理一级一a一片 | 日本黄色a级片 | 欧美色图一区二区 | 国产一区精品在线 | 美女视频福利 | 日韩免费高清视频 | 91免费网站入口 | 久久久午夜 | 在线观看黄色片 | 五月色综合 | 欧美激情国产精品 | 四虎影院www | 日韩中文字幕精品 | 第一福利视频 | 中文字幕国产精品 | 亚洲国产91 | 欧美色图一区 | 久草网在线观看 | 黄色在线小视频 | 国产午夜激情 | 精品一区二区三区免费看 | 欧美日韩国产三级 | 成人小视频在线 | 91丨九色丨国产在线 | 欧美日韩在线免费 | 亚洲毛片av | 一级片黄色 | 99中文字幕 | 成人福利视频 | 午夜久久久久久久 | 黄色片网站在线观看 | 国产专区在线播放 | 一区二区三区久久 | 久久草av | 第一福利视频导航 | 亚洲精品久久久久久久久久久 | 日韩黄色在线观看 | 日本成人精品 | 91看片看淫黄大片 |