菜鸟教程小白 发表于 2022-12-13 02:03:42

ios - iOS中另一个应用程序中的应用程序


                                            <p><p>如何在另一个应用程序中导入或显示一个应用程序?
就像,它将成为应用程序的一部分,您可以在其中使用它的功能。也许全屏或不全屏。我的想法是这些是基于网络的,并且正在 UIWebView 中打开以使用这些功能。
扩展?这更像是“捎带”。</p>

<p>这是一个例子:
<a href="https://hub.united.com/en-us/news/web/pages/uber-on-the-united-app.aspx" rel="noreferrer noopener nofollow">https://hub.united.com/en-us/news/web/pages/uber-on-the-united-app.aspx</a> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我将发布一个重新组合我的答案的答案以及@Popeye 一个似乎也有效的答案。</p>

<p>可能有几种方法可以做到这一点,每种方法的作用可能不同。</p>

<ul>
<li><p>另一个应用提供了一个公共(public)的 SDK/API/WebServices<br/>
作为一个例子,我将使用 FaceBook API,它允许你登录给你一个 <code>UIViewController</code>(你可以自定义),并允许你通过他们的 WebServices 请求一些数据(比如谁是 friend 等)。你还在你的应用中。</p></li>
<li><p>另一个应用程序为您提供私有(private) SDK/API/WebServices<br/>
和另一个一样,但更像是一种伙伴关系。你还在你的应用中。</p></li>
<li><p>网址方案<br/>
另一个应用程序为您提供了一些与之交互的方式。他们检查应用程序是否已安装,并使用一些参数启动它,如果没有,他们可能会将其重定向到商店中的应用程序、他们的网站等。<a href="https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html" rel="noreferrer noopener nofollow">More info about URL Schemes from Apple Doc</a> .您必须查看他们的文档才能知道如何与之交互。</p></li>
</ul></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iOS中另一个应用程序中的应用程序,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/25907056/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/25907056/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iOS中另一个应用程序中的应用程序