成人视屏在线观看-国产99精品-国产精品1区2区-欧美一级在线观看-国产一区二区日韩-色九九九

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

iOS指紋識別的簡單應(yīng)用

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

指紋識別(Touch ID)的簡單應(yīng)用,供大家參考,具體內(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)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。

標(biāo)簽: IOS
相關(guān)文章:
主站蜘蛛池模板: 国产舐足视频在线观看 | 免费一级性片 | 请看一下欧美一级毛片 | 色综合精品久久久久久久 | 天天拍拍夜夜出水 | 高清日本无a区 | 亚洲小视频在线播放 | 国产日产欧产精品精品推荐小说 | 美女张开腿让男人桶爽免费网站 | 长腿嫩模打开双腿呻吟 | 久久久99精品免费观看 | 久久久在线 | 欧美特黄一级 | 成人一级| 成年免费观看 | 国产亚洲精品九九久在线观看 | 偷偷操不一样的久久 | 2017天天爽夜夜爽精品视频 | 亚洲国产精久久久久久久 | 久操视频免费在线观看 | 久久精品视频在线观看榴莲视频 | 免费国产一区二区在免费观看 | 亚洲成人视 | 日韩精品一区二三区中文 | 日本国产最新一区二区三区 | 91pao强力打造免费高清 | 午夜国产精品不卡在线观看 | 久久久久久久99精品免费观看 | 久久精品免费在线观看 | 真人一级毛片免费完整视 | 欧美18毛片免费看 | 亚洲炮网| 在线观看成年人免费视频 | 国产成人精品视频频 | 色涩五月天| 免费欧美一级片 | 农村寡妇野外情一级毛片 | 男人的天堂视频在线观看 | 久草综合在线视频 | 成人在线免费网站 | 美女成人网 |