亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

iOS指紋識別的簡單應用

瀏覽:20日期: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
相關文章:
主站蜘蛛池模板: 国产美女啪 | 欧美成人精品一区二三区在线观看 | 91在线免费视频 | 精品国产日韩亚洲一区91 | 91官网 | 黄色的视频在线免费观看 | 那一个欧美一级毛片 | 999伊人 | 久久久久国产精品免费 | 免费看欧美毛片大片免费看 | 久久精品久久久久久久久人 | 91短视频版高清在线观看免费 | 91久久香蕉国产线看观看软件 | 精新精新国产自在现拍欣赏网 | 欧美三级真做在线观看 | 91免费国产在线观看 | 亚洲小视频网站 | 在线观看三级视频 | 宅男视频污在线看 | 亚洲一区二区在线播放 | 欧美人成片免费看视频不卡 | 亚洲欧美久久 | 日韩久久中文字幕 | 妖精视频免费入口 | 岛国片在线播放 | 午夜精品久久久久久久 | 亚洲欧美另类在线 | 91久久线看在观草草青青 | 91福利国产在线观看 | 婷婷99精品国产97久久综合 | 一级毛片不卡免费看老司机 | 色综合色狠狠天天久久婷婷基地 | 超91精品手机国产在线 | 欧美亚洲综合网 | 中文字幕 亚洲 一区二区三区 | 国产乱码精品一区二区三上 | 久久综合九色综合欧洲 | 2022麻豆福利午夜久久 | 成人精品国产 | 日本视频免费高清一本18 | 国产精品久久久久久久久免费 |