- update libraries

- change NSLogDebug Marco
This commit is contained in:
giuseppenuc committed 2018-05-02 10:56:06 +02:00
1 parent e93483ea53
commit 78a514ed18
71 files changed
+4640 -3485

No files matched your search

@@ -22,6 +22,8 @@
- (BOOL) isValidTaxCode;
- (BOOL) isValidFirstnameOrLastname;
- (NSString *) md5;
- (NSString*) sha1;
@@ -62,6 +62,15 @@
return [urlTest evaluateWithObject:self];
}
- (BOOL) isValidFirstnameOrLastname {
NSString *firstNameRegEx = @"^[a-zA-Z][ a-zA-Z\\s]+$";
NSPredicate *nameTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", firstNameRegEx];
return [nameTest evaluateWithObject:self];
}
#pragma mark - Random String Method
+ (NSString *) getRandString: (int) length {