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; } }}