Commit e7843aa3c3117af3128cc135401f7beff18ee0a0
1 parent
22b03300fc
Exists in
master
接入说明
Showing 1 changed file with 26 additions and 0 deletions Side-by-side Diff
activity.md
... | ... | @@ -0,0 +1,26 @@ |
1 | +# Gump Activity IOS SDK使用文档 | |
2 | + | |
3 | + | |
4 | +接入手册 | |
5 | +V 1.0.1 | |
6 | +2018年6月13日 | |
7 | + | |
8 | +## 接入步骤 | |
9 | +### 1、设置xxxx.plist | |
10 | ++ 只支持HTTP的方式,需要将相应的项目的xxx.plist添加`Information Property List`->`App Transport Security Settings` -> `Allow Arbitrary Loads`设置为YES | |
11 | + | |
12 | +### 2、工程中添加SDK登录代码 | |
13 | + | |
14 | + NSMutableDictionary *activityInfo = [NSMutableDictionary dictionary]; | |
15 | + [activityInfo setValue:@"100" forKey:@"appId"]; | |
16 | + [activityInfo setValue:@"f899139df5e1059396431415e770c6dd" forKey:@"appKey"]; | |
17 | + [activityInfo setValue:@"123456" forKey:@"userId"]; | |
18 | + [activityInfo setValue:@"111" forKey:@"serverId"]; | |
19 | + [activityInfo setValue:@"aaa" forKey:@"serverName"]; | |
20 | + [activityInfo setValue:@"222" forKey:@"roleId"]; | |
21 | + [activityInfo setValue:@"ccc" forKey:@"roleName"]; | |
22 | + [activityInfo setValue:@"888" forKey:@"diamond"]; | |
23 | + //关闭活动的回调 | |
24 | + [[LetsGameActivityAPI instance] GameActivityWithParaDictory:activityInfo handleCallBackL:^{ | |
25 | + NSLog(@"activity finish!"); | |
26 | + }]; | |
0 | 27 | \ No newline at end of file |