现在手机号段比较多,简单点就判断是否以1开头的11位数字,如下: //简单点就看是否是1开头的数字吧 func isMobile(mobile:String?) -> Bool { if let trueMobile = mobile { var mobileReg = "^1\\d{10}$" var regextestmobile = NSPredicate(format: "SELF MATCHES %@",mobileReg) return regextestmobile.evaluateWithOb…