New features for iOS 9, continuously updated:

Source: Internet
Author: User

1. The function of returning the current language has changed, if used previously, there will be multiple location suffixes, such as in China you use English, return "EN-CN", want to only get language, use the following method

String Systemhelper::getcurrentlanguage ()
{
nsstring* value = [[Nslocale preferredlanguages] objectatindex:0];

NSString *value = [[[NSBundle Mainbundle] preferredlocalizations] objectatindex:0];
return [value utf8string];

}

2. Do not know why to add network permissions one says: may be in security considerations

Step1. Add nsapptransportsecurity in Info.plist file, type dictionary

Step2. Add Nsallowsarbitraryloads under the above property, type Boolean, and value set to Yes

New features for iOS 9, continuously updated:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.