久久福利_99r_国产日韩在线视频_直接看av的网站_中文欧美日韩_久久一

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

iOS指紋識別的簡單應用

瀏覽:36日期: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
相關文章:
主站蜘蛛池模板: 精品乱子伦一区二区三区 | 午夜激情av | 不用播放器的毛片 | 色黄网站 | 欧美一区日韩一区 | 黑人巨大精品欧美一区二区小视频 | 亚洲性生活免费视频 | 国产精品久久久久久久久福交 | 一级黄色毛片子 | 亚洲八区 | 日韩av一区二区三区在线 | 午夜黄色影院 | 亚洲精品久久久久avwww潮水 | 欧美日韩精品一二区 | 少妇一级淫免费放 | 久久伊人中文字幕 | 99精品一区二区三区 | 午夜精品影院 | 经典法国性xxxx精品 | 狠狠爱www人成狠狠爱综合网 | 日本在线免费 | 亚洲综合大片69999 | 亚洲精品视频在线 | 91丨九色丨国产 | 成人在线高清视频 | 久久久久国产一区二区三区 | 欧美成人精品一区二区三区 | 久久久久久99精品 | 美女在线一区 | 在线二区 | 国产v日产∨综合v精品视频 | 久久久久久久久久一区二区 | 中文字幕在线一区二区三区 | 亚洲高清av| 欧美日韩国产一区二区三区 | 涩涩999| 亚洲天堂一区 | 妞干网av | 国产一区二区久久 | 欧美一级视频在线观看 | 91亚洲精品在线观看 |