Problem when loading image from google chart api URL

Posted by user304839 on Stack Overflow See other posts from Stack Overflow or by user304839
Published on 2010-04-02T13:01:36Z Indexed on 2010/04/04 10:13 UTC
Read the original article Hit count: 599

Filed under:

I want to show concentric charts of google api in iphone, but the imageData varible returns null value and image does not loaded from url to image view

this is code:

NSData *imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://chart.apis.google.com/chart?cht=pc&chd=t:120,45|120,60,50,70,60&chs=300x200&chl=||helo|wrd|india|pak|ban&chco=FFFFFF|FFFFFF,e72a28|a9d331|ffce08|8a2585|184a7d"]];

NSLog(@"%@",imageData); UIImage *myimage = [[UIImage alloc] initWithData:imageData];

self.myImageView.image=myimage;

please any one help me to overcome on this problem

© Stack Overflow or respective owner

Related posts about iphone-sdk