NSCharacterSet *alphanumericSet = [NSCharacterSet alphanumericCharacterSet];
NSCharacterSet *numberSet = [NSCharacterSet decimalDigitCharacterSet];
BOOL isAplhaNumericOnly= [[password stringByTrimmingCharactersInSet:alphanumericSet] isEqualToString:@""] && ![[password stringByTrimmingCharactersInSet:numberSet] isEqualToString:@""];
NSLog(@"isAplhaNumericOnly: %d",isAplhaNumericOnly);
if(isAplhaNumericOnly)
return YES;
/*NSCharacterSet *s = [NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyz1234567890@$"];
NSCharacterSet *numberSet = [NSCharacterSet decimalDigitCharacterSet];
BOOL isAplhaNumericOnly= [[password stringByTrimmingCharactersInSet:alphanumericSet] isEqualToString:@""] && ![[password stringByTrimmingCharactersInSet:numberSet] isEqualToString:@""];
NSLog(@"isAplhaNumericOnly: %d",isAplhaNumericOnly);
if(isAplhaNumericOnly)
return YES;
/*NSCharacterSet *s = [NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyz1234567890@$"];