Mobile phone attribution to search

Source: Internet
Author: User

These two days use the cell phone attribution to query, before finding a soap 100 times/24 hours before continuing to use the charge. Too expensive, but also delayed the matter, later in the group of the host to recommend a free website:

Transmission Door

Like the following function: To everyone only use the part of the place where the point code you use it yourself

On the code bar: can inquire mobile phone number of the attribution, provinces, and other information is very full, hope to help everyone:

-(void) managelocationinformation{nserror *error; Stitching query string NSString *locationstr = [NSString stringwithformat:@ "%@?app=phone.get&phone=%@&appkey=%@&sign        =%@&format=json ", klocationbaseurl,_mobiletext.text,kappkey,ksign];    Nsurl *locationurl = [Nsurl urlwithstring:locationstr];    Nsurlrequest *request = [Nsurlrequest Requestwithurl:locationurl];        NSData *response = [nsurlconnection sendsynchronousrequest:request returningresponse:nil Error:nil]; Nsdictionary *locationmanage = [Nsjsonserialization jsonobjectwithdata:response options:nsjsonreadingmutableleaves    error:&error]; if (!error) {if ([[Locationmanage objectforkey:@ "Success"] integervalue] = = 1) {nsdictionary *location                        Info = [Locationmanage objectforkey:@ "result"];                        operator NSString *operators = [Locationinfo objectforkey:@ "operators"]; More information China, province, city nsstring *informationstr = [Locationinfo objectforkey:@ "Style_simcall"];                        Nsarray *informationarray = [Informationstr componentsseparatedbystring:@ ","];                        Province NSString *province = informationarray[1];            Province-operator NSString *provincemanagestr = [NSString stringwithformat:@ "%@%@", province,operators];            NSLog (@ ";d alksjdf;las----%@", PROVINCEMANAGESTR);        _provincemanage = Provincemanagestr; }    }}

  

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.