Android是什么内容提供商的IOS等价? [英] What is the equivalent of Android content provider in IOS?

查看:157
本文介绍了Android是什么内容提供商的IOS等价?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是iOS的?

摘要:

一个内容提供商管理访问数据的中央存储库。提供者是一个Android应用程序,它通常提供自己的用户界面与数据工作的一部分。但是,内容提供者主要是用来由其他应用程序,该访问使用提供商客户对象的提供者使用。总之,供应商和供应商的客户提供一致的,标准的接口将数据,也负责处理进程间通信和安全的数据访问。

A content provider manages access to a central repository of data. A provider is part of an Android application, which often provides its own UI for working with the data. However, content providers are primarily intended to be used by other applications, which access the provider using a provider client object. Together, providers and provider clients offer a consistent, standard interface to data that also handles inter-process communication and secure data access.

文档:
http://developer.android.com/guide/topics/providers/content -providers.html

推荐答案

如果我理解正确的链接,没有等价的。

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

在iOS上,应用程序不能以这种方式分享彼此之间的资源。出于安全原因,每个应用程序都有它自己的数据和从能够另一个应用程序中访问数据的沙盒。

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.

您可以在应用程序之间共享数据的唯一途径是让一些网络同步过程您的应用程序之间,或者可能使用 UIPasteBoard 但这是繁琐。您还可以通过app URL方案通过非常有限的数据。

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.

这篇关于Android是什么内容提供商的IOS等价?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆