Commit ea19ed6d by lee

Merge branch 'master' of git.oschina.net:kollway-kollway/newcemarose

parents c1da63a3 59106dee
...@@ -312,14 +312,16 @@ static NSString *identify = @"KWMSearchBrandsCell"; ...@@ -312,14 +312,16 @@ static NSString *identify = @"KWMSearchBrandsCell";
return ; return ;
} }
// NSArray *indexArray= [result.brands arrayWithPinYinFirstLetterFormat]; // NSArray *indexArray= [result.brands arrayWithPinYinFirstLetterFormat];
if(self.dataArray){ //如果已经从缓存拿到数据了。 // if(self.dataArray){ //如果已经从缓存拿到数据了。
return; // return;
// }
if(result.brands){
NSArray *indexArray= [[result.brands rx_filterWithBlock:^BOOL(id each) {
return each && each != [NSNull null];
}] arrayWithPinYinFirstLetterFormat];
_dataArray =[NSMutableArray arrayWithArray:indexArray];
[weakSelf.tbvSearchBrand reloadData];
} }
NSArray *indexArray= [[result.brands rx_filterWithBlock:^BOOL(id each) {
return each && each != [NSNull null];
}] arrayWithPinYinFirstLetterFormat];
_dataArray =[NSMutableArray arrayWithArray:indexArray];
[weakSelf.tbvSearchBrand reloadData];
}; };
void(^cacheCallback)(KWMBrandsResult *) = ^(KWMBrandsResult *result){ void(^cacheCallback)(KWMBrandsResult *) = ^(KWMBrandsResult *result){
// if([weakSelf hasCemaroseError:result]){ // if([weakSelf hasCemaroseError:result]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment