Use Openurl: [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: appstring];The system appstring includes:1. Map http://maps.google.com/maps? Q = Shanghai2. email mailto: // myname@google.com3. Tel: // 100864. msg sms: // 10086Openurl can help you run maps, SMS, browser, phone, and other applications.Program. This is a frequently used section in iPhone development.CodeIt only has one row.
// Open the map
-(Ibaction) openmaps {Nsstring
1, we successfully login webmail and then click "Mailbox Settings"-"account Security"-"binding mobile phone number" effect is as follows
2, and then we fill in this email account password to determine the operator's identity effect as shown below.
3, here we enter their mobile phone number, the effect
This article example needs to verify the content: The mail address, the URL address, the telephone number, the postal code , the verification method share for everybody reference, the concrete content is as follows
1, the verification of the e-mail address
2, the URL address of the check
3. Telephone
Micro-letter official announced the introduction of two security measures: Account protection and account emergency frozen channel. Account Protection function is the micro-letter and mobile phone number binding, this seems to be targeted by the QQ number registered micro-letter users. This binding process takes four steps:
1. In the "I" column into the "Perso
Copy Code code as follows:
Mobile phone number Verification
function Checkmobilevalidity ($mobilephone) {
$exp = "/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|18[012356789]{1}[0-9]{8}$|14[57]{1}[0-9]$/";
if (Preg_match ($exp, $mobilephone)) {
return true;
}else{
return false;
}
}
Mobile phone number At
Copy CodeThe code is as follows:
Mobile phone number Verification
function Checkmobilevalidity ($mobilephone) {
$exp = "/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|18[012356789]{1}[0-9]{8}$|14[57]{1}[0-9]$/";
if (Preg_match ($exp, $mobilephone)) {
return true;
}else{
return false;
}
}
Cell phone number Attribution
Added to the 158, 159 the beginning of the phone number verification.
Copy Code code as follows:
Remove string and tail space
String.prototype.Trim = function () {
var m = This.match (/^\s* (\s+ (\s+\s+) *) \s*$/);
return (M = = null)? "": m[1];
}
Verify Legal mobile phone number
String.prot
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.