简体   繁体   English

插入其他应用程序(iPhone SDK)

[英]Plug In To Other Applications (iPhone SDK)

I'm pretty sure that due to the Application Sandbox, none of this is possible, but... 我很确定由于应用程序沙箱,这一切都不可能,但是...

I am working on an application that operates on text that the user inputs. 我正在处理一个在用户输入的文本上运行的应用程序。 Aside from forcing the user to copy and paste from another application or type in text, what other options exist for getting text? 除了强制用户从另一个应用程序复制和粘贴或键入文本外,还有哪些其他选项可用于获取文本? To be more specific: 更加具体:

  • Is there any way to get the user to "pass" an email to my app? 有什么方法可以使用户将电子邮件“传递”到我的应用程序? I can imagine a hacky solution where I have the user mail it to a server on the Net, and then I expose the mail from a server-side application, but I'd like something a bit more direct. 我可以想像一个骇人听闻的解决方案,在该解决方案中,用户将邮件邮寄到网络上的服务器,然后从服务器端应用程序公开邮件,但我想让事情更直接一些。
  • Is there any way to get to the user's mail inbox without asking them to put in their credentials? 有什么方法可以在不要求用户输入凭据的情况下到达用户的邮件收件箱吗?
  • Is there any way to plug-in to Safari, so that I can send web pages "over" to the app? 有什么办法可以插入Safari,以便我可以将网页“上方”发送到应用程序吗? I don't mean a full plugin, which I know is impossible . 我并不是说完整的插件, 我知道这是不可能的

I'm trying to think of creative ways to solve this problem of how to get text into my app, so any ideas would help. 我正在尝试寻找创造性的方法来解决如何将文本输入我的应用程序的问题,因此任何想法都将有所帮助。

From the Iphone SDK Forum: "Apps can't read each others files - but you could use a URL scheme to launch one app from another. Any parameters in the URL would be passed." 在Iphone SDK论坛中:“应用程序无法读取彼此的文件-但您可以使用URL方案从另一个应用程序启动一个应用程序。URL中的任何参数都将被传递。”

It's what my gut was telling me, but i wanted to go verify before saying..officially, no. 这是我的直觉告诉我的,但是我想先核实再说..正式地,不。 The Sandbox isolates each program.. 沙箱隔离了每个程序。

You can pass via URL text strings, but that's about it. 您可以通过URL文本字符串进行传递,仅此而已。 I haven't seen any app which hacks around this limitation, but that just may be none of them surviving the app submission process. 我还没有看到有任何应用程序可以绕过此限制,但是可能没有一个应用程序可以幸免于难。

http://www.iphonedevsdk.com/forum/iphone-sdk-development/21099-sharing-data-between-applications.html http://www.iphonedevsdk.com/forum/iphone-sdk-development/21099-sharing-data-between-applications.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM