[ad_1]
I’m including a share extension for an app, which permits the person so as to add any variety of pictures to the app by (1) copying the chosen photographs as authentic photographs into the doc listing of the app and (2) write an entry into the apps database for every picture positioned within the doc listing too.
I learn a number of instances about reminiscence limits of app extensions, e.g. right here and right here and I see now 2 methods of implementing:
- copy the photographs and make the db entries within the code of the share extenion (ShareViewController)
- write the photographs URLs into the doc listing and test on every app launch whether or not there are some URLs, then copy the photographs and do the db entries on the app launch and clear the URLs from the doc listing
Did anybody face the identical downside or obtained any advice?
[ad_2]
