我正在创建一个应用程序,其中我需要验证正确的电子邮件格式,为此我正在使用 Regexkitlite。虽然我工作得很好,但在谷歌上花了一些时间我 learnt AppStore 不再接受它。
如果是这样,那还有什么AppStore可以接受的呢?
最佳答案
我已经在应用商店中的许多应用中使用了它。
NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
if([emailTest evaluateWithObject:email])
{
//email valid
}
else
{
//email not valid
}
关于iphone - Regexkitlite 在 AppStore 被拒绝。还能用什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9376647/