问题
I created a Today Extension
that is introduced in iOS 8 first time. To share data between Today extension
and it's container App
, I defined an app group
, and bind them to this group. (Actually I added an embedded framework also to re-use code in both side.)
Details of this method is described in Apple's document.
I created some core data model and store it as sqlite on group container. Then everything works as I thought.
However, when I uninstall container app, There are still shared container and it's content on my iPhone. I think when last member of app group is uninstalled, this container should have to be deleted automatically. In my case, members of app group are shipped with just a single app, So, uninstalling this app should have to clear shared container.
Am I wrong?
ps. I could not find a way to delete this shared container as an user. Only developer who has rights to access app-group can remove this container with programming.
回答1:
In iOS8 beta 4, App group container is deleted automatically when the last app that is belongs to the group is uninstalled,
So, it was just a bug that is now fixed by Apple.
来源:https://stackoverflow.com/questions/24158410/uninstalling-app-not-delete-app-group-data-do-i-have-to-remove-app-group-contai