Question

I want to add an In App Purchase functionality to my iOS app (for the first time) where i can enable users to download more content - a set of images.

I have already read many articles, but as long as i understand how to manage IAP, i'm not clear how do i access downloaded content? Do i just use that files as they were a standard resources like

[UIImage imageNamed:@"xyz.jpg"];

or i need to manage them other way? What's the best practice for that purposes?

Was it helpful?

Solution

If you are downloading the content, it will not be the part of application bundle. So you can not directly access those images via [UIImage imageNamed:@"xyz.jpg"];

You will have to save them in documents directory. You can then access it via referring to the path of documents directory.

One can not change the bundle once application is shipped. The only editable part is documents directory. So, you will need to download and access the new resources from and to documents directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top