# VerificationCode **Repository Path**: xiaobai0134/VerificationCode ## Basic Information - **Project Name**: VerificationCode - **Description**: 这是一个简单的 随机验证码 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VerificationCode 这是一个随机验证码 ![输入图片说明](https://images.gitee.com/uploads/images/2018/1004/171525_3002baed_1856396.gif "code.gif") 使用 XBGetVerificationCodeView * xbView = [[XBGetVerificationCodeView alloc]initWithFrame:CGRectMake(100, 100, 100, 40)]; [xbView setBackgroundColor:[UIColor orangeColor]]; xbView.tmpCodeType = XBGetVerificationCodeThree; [xbView setSetShowCodeNumber:^(NSString *codeNumber) { NSLog(@"验证码为:%@",codeNumber); }]; [self.view addSubview:xbView];