NSString *weatherUrl=[NSString stringWithFormat:@"%@%@.html",@"http://www.weather.com.cn/data/cityinfo/",cityID];
DLog(@"the url is %@",weatherUrl);
NSURL *url = [NSURL URLWithString:weatherUrl];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *request, NSData *data, NSError *err) {
NSMutableDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:nil];
DLog(@"weather json is %@",dic);
NSMutableDictionary *jsonoSubObj = [dic objectForKey:@"weatherinfo"];
[self.todayWeather setText:[[NSString alloc] initWithFormat:@"%@\n",[jsonoSubObj objectForKey:@"weather"]]];
[self setWeatherIcon:[self.todayWeather text]];
[self.todayWeatherNum setText:[NSString stringWithFormat:@"%@-%@",[jsonoSubObj objectForKey:@"temp2"],[jsonoSubObj objectForKey:@"temp1"]]];
}];
NSURLConnection *connection = [[NSURLConnection alloc]
initWithRequest:request
delegate:self];
[connection start];
[connection release];
[request release];