iPhone应用程序可以调用另一个应用程序吗? [英] Can an iPhone app call another app?

查看:101
本文介绍了iPhone应用程序可以调用另一个应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:iPhone中的联系人"不会将联系人组织到组(邮件列表)中.您可以编写一个可以在手机上维护数据库的应用程序.群组可以是同事",聚会朋友",亲戚"等.

Example: "Contacts" in iPhone does not organize contacts into groups (mailing lists). You could write an app that maintains a database on the phone itself. Groups could be "Co-workers", "Party friends", "Relatives" etc.

从另一个应用程序中调用该应用程序会很好.

From another app it would be nice to call up this app.

想象一个名为"TellMyFriends"的应用程序.这个程序可以召唤照片库来选择一张照片,或者召唤相机来拍一张新照片. (您可以使用iPhone SDK进行此操作.)

Imagine an app named "TellMyFriends". This app can summon the Photo Library to select a photo, or the Camera to take a new photo. (You can do this with the iPhone SDK.)

现在,您要将照片发送给聚会朋友".您想召唤具有群组数据库的第二个应用程序.选择聚会朋友"组,它返回一个名称列表,第一个应用程序可以在电话的通讯录中找到该名称.能做到吗?

Now you want to send the photo to "Party friends". You want to summon the second app that has the database of groups. Select the "Party friends" group and it returns with a list of names that the first app can then find in the phone's address book. Can this be done?

推荐答案

是的,您需要该应用程序进行注册,然后才能使用URL进行调用.
检查应用程序:handleOpenURL:

yes, you need that application to register itself, then you can call it with an URL.
check application:handleOpenURL:

这篇关于iPhone应用程序可以调用另一个应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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