What is the equivalent of Android content provider in IOS?

谁说我不能喝 提交于 2019-11-29 12:24:15

If I'm understanding that link correctly, there is no equivalent.

On iOS, apps can't share resources between each other in that way. For security reasons, each app has it's own data and is sandboxed from being able to access the data within another app.

The only ways you could share data between apps is to have some network sync process between your apps, or possibly use UIPasteBoard but that's cumbersome. You can also pass very limited data via the app URL scheme.

There's a way to share content between apps via keychain if one wanted to in iOS. I think this is the closest I can think of that is equivalent to the content provider in Android.

Good reference here: http://shaune.com.au/ios-keychain-sharing-data-between-apps/

Kesava

In iOS we can share data between apps having same group id.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!