ButterflyHostSDK 0.9.0

ButterflyHostSDK 0.9.0

avielbs 维护。



  • 作者:
  • avielBS

TheButterflyHost iOS SDK

Version License Platform

TheButterflyHost 帮助您的应用程序参与反对家庭暴力的斗争。

安装

🔌 & ▶️

通过 CocoaPods 安装

您希望在 Podfile 中添加类似以下内容的 'ButterflyHostSDK':

target 'MyApp' do
  pod 'ButterflyHostSDK', '0.8.0'
end

然后在终端或 CocoaPods app 中运行 pod install。

用法

要识别您的应用程序在 ButterflyHostSDK 服务器上的状态,您需要一个应用程序密钥,您可以通过代码设置它。为了显示视图,ButterflyHostSDK 需要当前的 UIViewController。

示例

// import the pod
#import <ButterflyHostSDK/ButterflyHost.h>

   ButterflyHost* butterflyHost = [ButterflyHost shared];
   [butterflyHost grabReportInViewController:self usingKey:@"YOUR_API_KEY"];

// import the pod
import ButterflyHost

    ButterflyHost.getInstance().grabReportInViewController(UIViewController, usingKey:"YOUR_API_KEY")

评论

  • 如果您项目中没有 CocoaPods,请访问这里:https://cocoapods.org.cn/
  • 查看本地化支持,并将其添加到您的项目中!