午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術(shù)文章
文章詳情頁

iOS指紋識別的簡單應用

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

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

1、調(diào)用

- (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:@'點擊調(diào)用' 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

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

標簽: IOS
相關(guān)文章:
主站蜘蛛池模板: 黄色大片在线免费观看 | 欧美黄色大片免费观看 | 欧美成人一二三区 | 国产 欧美 精品 | 黄色网址av| 免费看毛片的网站 | 良辰之屋在线观看 | 欧美日韩第一 | 少妇精品偷拍高潮白浆 | 手机看片日韩日韩 | 中国2018年最新最好看的字幕 | 岛国av免费在线观看 | 日韩av中文字幕在线播放 | 日韩精品视频在线看 | 丁香六月久久 | av在线播放一区二区 | 成年人晚上看的视频 | 牛牛视频在线 | 国产综合网站 | av网站在线免费观看 | 国产视频精品免费 | av色婷婷 | 欧美成人激情在线 | 成人在线激情视频 | 三级视频在线观看 | 激情小说dvd | 毛片的网站 | 操国产美女 | 久久人精品 | 免费一区 | 久久精品国产成人av | 国产一区二区视频免费 | 婷婷色中文网 | 亚洲精品国产一区二 | 天堂综合在线 | 国产精品人| 视色网站| 亚洲经典av | 国产精品最新 | 国产精品久久久久久精 | 亚洲天堂av一区 |