Apptient-Segments-SDK 通过 CocoaPods 提供。要安装它,只需将该行添加到您的 Podfile 中
pod "Apptient-Segments-SDK"
使用 #include <Apptient-Segments-SDK/SegmentsSDK.h>
将它添加到您的 Application Delegate 的 .m
文件中。在 application:didFinishLaunchingWithOptions:
中添加以下行
#include <Apptient-Segments-SDK/SegmentsSDK.h>
// some code here
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//..
[SegmentsSDK startWithAppId:@"Some-APP-ID"]
return YES;
}
对于基本配置,从 APPTIENT Inc. 获取您的 App ID。
Bruno Bulic, [email protected]
Apptient-Segments-SDK 在 APPTIENT Inc. 的 条款和条件 下提供。有关详细信息,请参阅 LICENSE。