how can i call an UIImage from the web by scanning a barcode? I'm using linea pro.
this is my coding
when i scan the ns log doesn't run. so I'm assuming its not sending or getting data.
this is my coding
Code:
- (void)viewDidLoad
{
NSMutableString *sURL = [[NSMutableString alloc] initWithString:@"http://*********.com/prodimage/"];
[sURL appendFormat:@"%@", lastBarcode];
NSLog(@"sURL is: %@", sURL) ;
UIImage * image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:sURL ]]];
UIImageView * imageView = [[UIImageView alloc]initWithImage:image];
[self.view addSubview:imageView];
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
when i scan the ns log doesn't run. so I'm assuming its not sending or getting data.