ios + cocos2d-x 友盟SDK触发方法
2014-12-24 11:09
393 查看
NSString* appKey = [[NSString alloc]initWithString:@"友盟ID"];
[MobClick startWithAppkey:appKey];
[MobClick setLogEnabled:YES];
//消费成功时的操作 这里的字典是自定义属性,可有可无
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%f",moneyExchangeDiamond[currentLevelId][1]], @"price",nil];
[MobClick event:@"purchase" attributes:dict];
[MobClick startWithAppkey:appKey];
[MobClick setLogEnabled:YES];
//消费成功时的操作 这里的字典是自定义属性,可有可无
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%f",moneyExchangeDiamond[currentLevelId][1]], @"price",nil];
[MobClick event:@"purchase" attributes:dict];
相关文章推荐
- 《WF编程》系列之20 - 触发事件与调用方法:宿主的实现
- 一个页面多个button时,按Enter触发指定button事件的方法
- FileSystemWatcher事件多次触发的解决方法
- 手动触发js事件的一种方法
- 获取触发页面回调的控件的方法
- JS获取触发事件元素的方法
- FileSystemWatcher事件多次触发的解决方法
- 《WF编程》系列之18 - 触发事件与调用方法:服务合同 Service Contracts 3.2.3 触发事件与调用方法
- FileSystemWatcher事件多次触发的解决方法
- [原创]如何在关闭当前页面时刷新父页面(调用它的页面),或者触发父页面的某个事件或方法
- js在insertRow里面触发事件的方法
- 无内容div占据空间的触发条件和解决方法
- 无内容div占据空间的触发条件和解决方法
- UpdatePanel触发javascript脚本的方法附代码
- .net客户端得到服务器端控件方法(服务器端控件触发客户端事件)
- 《WF编程》系列之18 - 触发事件与调用方法:服务合同 Service Contracts
- 用attachEvent()/addEventListener()方法添加触发事件
- 触发数据的事件对应查找方法
- C#调用Response.Redirect方法触发异常问题
- 用JavaScript触发UpdatePanel更新的几种方法