阅读背景:

判断银行账号是否输入正确

来源:互联网 

不多说  直接贴代码   随意输入银行卡号便可以够进行断定
- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *str = @"6226820011200783033";
    BOOL isRight = [self checkCardNo:str];
    if (!isRight) {
        
        UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"不对" message:@"请重新输入卡号" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];
        [alert show];
    }else{
        UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"对" message:@"" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];
        [alert show];}
}- (void)viewDidLoad 




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: