是否可以从iOS中的当前应用检测到另一个应用? [英] Is it possible to detect another application from the current app in iOS?

查看:102
本文介绍了是否可以从iOS中的当前应用检测到另一个应用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个粘滞按钮,它与ios中的远足"按钮一样在屏幕上显示

I need to create sticky button which is on screen like hike button in ios

如果我检测到该应用程序(WhatsApp)状态事件,则可以解决此问题.那就是为什么我需要创建另一个应用程序启动的事件.

If i detect that application(WhatsApp) state event so i solve this problem. Thats why i need to create another application launched event.

谢谢.

推荐答案

iOS上的应用已沙箱化,无法直接与其他应用直接通信. iOS SDK中有一些API,允许进行某些交互(主要是音频)和项目共享.

Apps on iOS are sandboxed and can not directly communicate with other apps directly. There are some API's in the iOS SDK which allows some interaction, mostly audio, share of items.

如果启动了另一个应用程序,Apple不会向您公开该应用程序,因此无法检查是否已启动另一个应用程序.

Apple does not expose to you app if an other app is launched, so checking that an other is launched is not possible.

第二个问题是您可以在自己的应用程序窗口之外的屏幕上进行绘制.因此,您将无法在其他一些应用程序上方绘制按钮.

The second issue is that you can draw on de screen outside of you own apps windows. So you will not be able to draw a button on top of some other app.

这篇关于是否可以从iOS中的当前应用检测到另一个应用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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