NSURL*url=[NSURL URLWithString:@"https://api.heweather.com/x3/citylist?search=allchina&key=415ad31dce824979897e25f8a06b0b18"];
//发送请求
NSURLRequest*request=[NSURLRequest requestWithURL:url];
NSURLResponse*reponse=nil;
NSData*data=[NSURLConnection sendSynchronousRequest:request returningResponse:&reponse error:nil];
//转换成json
NSDictionary*diction=[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];