色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

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

iOS指紋識別的簡單應用

瀏覽:26日期: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
相關文章:
主站蜘蛛池模板: 男女男精品视频 | 美女扒开腿被男人猛视频 | 亚洲国产精品一区二区第四页 | 手机免费黄色网址 | 亚洲va精品中文字幕动漫 | 亚洲欧美一区二区三区综合 | 国产三级精品在线 | 91天堂网| 三级黄色高清视频 | 国产亚洲欧美日韩在线观看不卡 | a久久99精品久久久久久不 | 自拍一页 | 精品亚洲成a人片在线观看 精品亚洲成a人在线播放 | 一级高清毛片免费a级高清毛片 | yy6080久久亚洲精品 | 波多野结衣免费免费视频一区 | 国产高清精品在线 | 毛片免费视频 | 男女性高爱潮免费的国产 | 成人免费黄色网址 | 视频在线色 | 日本免费一级视频 | 国产成人a毛片 | 99久久这里只精品国产免费 | 国产精品天堂avav在线 | 欧美一级欧美一级毛片 | 日本免费一区二区三区a区 日本免费一区二区三区看片 | 99在线播放 | 亚洲欧美一区二区三区综合 | 国产一级在线观看视频 | 一本伊大人香蕉高清在线观看 | 国产精品人成人免费国产 | 欧美国产伦久久久久 | 日韩国产一区二区 | 久久亚洲一级α片 | 亚洲欧美日韩在线一区 | 4四虎44虎www在线影院麻豆 | 国产成人盗拍精品免费视频 | 久久黄色毛片 | 美女超爽久久久久网站 | 美女张腿男人桶免费视频 |