简体   繁体   English

在iOS上进行应用间通信

[英]Inter app communication on IOS

In IOS, it is possible to launch another app from your app using a URL scheme. 在IOS中,可以使用URL方案从您的应用程序启动另一个应用程序。 But is it possible to have it then return to the calling app if the home button is then pressed? 但是,如果然后按下主屏幕按钮,是否可以使其返回到调用应用程序?

What if Guided Access is enabled? 如果启用了引导访问怎么办?

No sorry, The Home button will always lead to the users home, there is no way for developers to override that. 抱歉,“主页”按钮将始终引导用户回家,开发人员无法覆盖它。

You can however have a button in the "called" app that will take the user back to the app that opened it. 但是,您可以在“被叫”应用程序中有一个按钮,该按钮会将用户带回到打开它的应用程序。 Facebook does this when going back and forth between their main app and their messages app. 在主应用程序与消息应用程序之间来回移动时,Facebook会执行此操作。

edit Good answer from @shim about guided access in the comments. 编辑来自@shim的有关答案中引导访问的良好答案。 Basically if its on, you won't be able to leave the app so it doesn't do any good with this problem. 基本上,如果开启,您将无法离开该应用程序,因此它对这个问题没有任何帮助。 /edit /编辑

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

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