+(NSString *)checkForHttp:(NSString *)emailString
{
NSString *newEmailString = [NSString stringWithFormat:@"%@",emailString];
BOOL result = [[emailString lowercaseString] hasPrefix:@"http://"];
if (!result)
newEmailString = [NSString stringWithFormat:@"http://%@",emailString];
return newEmailString;
}
No comments:
Post a Comment