#pragma mark-Private method #pragma mark mailbox Verification-(BOOL) Isvalidateemail: (NSString *) email{ nsstring *emailregex = @ "[A-z0-9a-z._%+-][email protected][a-za-z0-9.-]+\\. [A-za-z] {2,4} "; nspredicate *emailtest = [Nspredicate predicatewithformat:@" Self MATCHES%@ ", emailRegex];& nbsp; return [Emailtest evaluatewithobject:email];} #pragma mark mobile Number verification-(BOOL) Isvalidatemobile: (NSString *) mobile{ //Mobile number starts with 13, 15, 18, eight \d numeric characters NS String *phoneregex = @ "^ ((13[0-9]) | ( 15[^4,\\D]) | (18[0,0-9])) \\d{8}$ "; nspredicate *phonetest = [Nspredicate predicatewithformat:@" Self MATCHES%@ ", phoneregex]; //NSLog (@ "Phonetest is%@", phonetest); return [Phonetest evaluatewithobject:mobile];} #pragma mark License plate number verification-(BOOL) Isvalidatecarno: (nsstring*) carno{ NSString *carregex = @ "^[a-za-z]{1}[a-za-z_ 0-9]{5}$ "; nspredicate *cartest = [Nspredicate predicatewithformat:@" Self MATCHES%@ ", carregex];   NSLog (@ "Cartest is%@", cartest); return [Cartest Evaluatewithobject:carno];}
On-Attack UI--------------------(email, phone, license plate verification)