Rich-text Reply

How add images remotely to my iOS app

Jean 06-27-14

How add images remotely to my iOS app

Hi !


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

Level 1

pkasso 07-01-14
 

Re: How add images remotely to my iOS app

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!

 

Paul

Optimizely