well i got this code:
NSLog(@"button pressed");
NSString* myurl=@"http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300x225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°";
NSString *theurl=[myurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:theurl] cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
NSURLResponse* response;
NSError* error;
NSData *imageData=[NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error];
NSLog(@"%@",error);
NSLog(@"%@",response);
NSLog(@"%@",imageData);
UIImage *myimage = [[UIImage alloc] initWithData:imageData];
graphimage.image=myimage;
Nothing realy special there…
but when i request the url: http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300×225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°
it requests with degrees like 30/40/50 … but i want values and not degreses in there which i get from the database.., how can i do it?
You will need to just get the degrees from a database and store them in a collection. Then you will be able to loop over the collection and add them to the string.