Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
ea19ed6d
Commit
ea19ed6d
authored
7 years ago
by
lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.oschina.net:kollway-kollway/newcemarose
parents
c1da63a3
59106dee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
KWMSearchBrandVC.m
iCemarose/Class/UI/Brand/KWMSearchBrandVC.m
+5
-3
No files found.
iCemarose/Class/UI/Brand/KWMSearchBrandVC.m
View file @
ea19ed6d
...
@@ -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
)
{
NSArray
*
indexArray
=
[[
result
.
brands
rx_filterWithBlock
:
^
BOOL
(
id
each
)
{
return
each
&&
each
!=
[
NSNull
null
];
return
each
&&
each
!=
[
NSNull
null
];
}]
arrayWithPinYinFirstLetterFormat
];
}]
arrayWithPinYinFirstLetterFormat
];
_dataArray
=
[
NSMutableArray
arrayWithArray
:
indexArray
];
_dataArray
=
[
NSMutableArray
arrayWithArray
:
indexArray
];
[
weakSelf
.
tbvSearchBrand
reloadData
];
[
weakSelf
.
tbvSearchBrand
reloadData
];
}
};
};
void
(
^
cacheCallback
)(
KWMBrandsResult
*
)
=
^
(
KWMBrandsResult
*
result
){
void
(
^
cacheCallback
)(
KWMBrandsResult
*
)
=
^
(
KWMBrandsResult
*
result
){
// if([weakSelf hasCemaroseError:result]){
// if([weakSelf hasCemaroseError:result]){
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment