How can I run one app from another app in iphone?

前端 未结 4 1279
甜味超标
甜味超标 2021-01-29 09:06

On some app , I see when one link touched , use safari for open link and quit from current app. I want use from this feature for run messages app from other app. Can I do this?

4条回答
  •  感情败类
    2021-01-29 09:32

    The only way I know to start external application is to use UIApplication openUrl. The documentation says

    An object representing a URL (Universal Resource Locator). UIKit supports the http:, https:, tel:, and mailto: schemes.

    If you meant e-mail application, you can pass link according to mailto: scheme. The simplest example is @"mailto:someone@example.com".

提交回复
热议问题