[Solved] What are some different ways of making an effective email validation method without using regular expression in objective c?
my attempt @interface Tester : NSObject +(BOOL) testForValidMail:(NSString *)mail; @end @implementation Tester +(BOOL)testForValidMail:(NSString *)string { NSRange atRange = [string rangeOfString:@”@”]; BOOL b = NO; if ((atRange.location != NSNotFound) //is `@` present && (atRange.location != 0) // and is `@` not at the beginning -> left substring exist && (atRange.location != string.length-1) // and not at … Read more