How add images remotely to my iOS app
I am using Optimizely for my iOS app and I would like load images remotely in my application without integrating them into the Supporting Files directory.
Is it possible ?
Thanks a lot
Hi @Jean - this is definitely a high priority item for us and is already a work in progress.
As far as a clean workaround - we recomend simply downloading the image so that you are free to A/B test it. You'd want to use something along the lines of:
NSURL *imageurl = [NSURL URLWithString:@"URL.png"]; NSData *imagedata = [[NSData alloc]initWithContentsOfURL:imageurl]; UIImage *image = [UIImage imageWithData: imagedata]; [logoImg setImage: image];
Hope this helps!