What is the equivalent of Android content provider in IOS?

前端 未结 3 1959
时光说笑
时光说笑 2020-12-20 01:06

What is the equivalent of Android\'s content provider in iOS?

Summary:

A content provider manages access to a central repository of data. A pr

相关标签:
3条回答
  • 2020-12-20 02:00

    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.

    0 讨论(0)
  • 2020-12-20 02:02

    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/

    0 讨论(0)
  • 2020-12-20 02:09

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

    0 讨论(0)
提交回复
热议问题