Hi all,
I'm trying to use the Google API to put some graphics in my application but it's not workig. I tested the code for other images on internet and it worked.
Code:
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *myimage = [UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: @"http://chart.apis.google.com/chart?cht=bvo&chd=t:10,50,60,80,40&chl=Hello|World|hi&chs=250x100"]]];
UIImageView *test = [[UIImageView alloc] initWithImage:myimage];
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)];
[myView addSubview:test];
[self.view addSubview:myView];
}
Thanks, Claudio