如何在我的iPhone应用程序中集成Skype

m.v*_*ani 3 skype ios swift

我是iOS新手.我想在我的iPhone应用程序中集成Skype,为此我搜索了很多,但我还没有找到解决方案

如何获取Skype SDK进行集成.如何在我的应用程序中集成Skype API.有没有其他方法来制作开发者Skype帐户

如果您的人员有任何示例代码请发布.请帮助我.非常感谢.

我已经尝试了一些代码,请看下面但是使用该代码我的模拟器它显示如下图像的警报

我的代码: -

- (IBAction)skypeMe:(id)sender {

    BOOL installed = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]];
    if(installed)
    {

        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"skype:echo123?call"]];
    }

    else
    {

        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.com/apps/skype/skype"]];
    }
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Mai*_*ani 5

对于Swift 3.0,如果没有安装就打开itunes url,否则打开skype。

@IBAction func btnSkypeLinkPressed(_ sender : UIButton) {

    let installed = UIApplication.shared.canOpenURL(NSURL(string: "skype:")! as URL)
    if installed {
        UIApplication.shared.openURL(NSURL(string: "skype:skypeID")! as URL)

    } else {

        UIApplication.shared.openURL(NSURL(string: "https://itunes.apple.com/in/app/skype/id304878510?mt=8")! as URL)
    }
}
Run Code Online (Sandbox Code Playgroud)

并在 plist 添加:

<key>LSApplicationQueriesSchemes</key>
    <array>
    <string>skype</string>
    </array>
Run Code Online (Sandbox Code Playgroud)

希望它适用于快速用户谢谢。