使用cuzysdk 手机淘客轻松实现9.9元包邮模块
?
?
?
?
?
?
?
?
?
使用cuzysdk, 进入cuzy.com 到热门主题,查看系统热门主题9.9包邮,这个主题的主题id号为2,
在ios的使用中,只需要在注册sdk之后
?
?
?
//release server key & secret:
[[CuzyAdSDKsharedAdSDK] registerAppWithAppKey:@"200003"andAppSecret:@"208f53acd6d396867c2a721be6c807eb"];
?
?
}
?
调用 主题2就可以了,保持关键字参数为空
- (IBAction)showLayout2:(id)sender {
[[CuzyAdSDKsharedAdSDK] fetchAppItemWithThemeID:@"2"orSearchKeywords:@""withPageIndex:0];
}
?
或者也可以获取数据,自己定制ui
?
- (IBAction)getRawArray:(id)sender {
NSArray* rawArray = [[CuzyAdSDKsharedAdSDK] fetchRawItemArraysWithThemeID:@"2"orSearchKeywords:@""withPageIndex:0];
?
NSLog(@"the rawArray size is %d", rawArray.count);
for (int i =0;i<[rawArray count]; i++) {
CuzyTBKItem* tempItem = [rawArray objectAtIndex:i];
?
}
?
}
?
这样就非常简单的实现了 一个9.9包邮的购物模块。
?
?