Skip to content

Commit

Permalink
little change to enhance performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
allbluexu committed May 2, 2015
1 parent d4933e1 commit 921ae94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SvpplyTable/STTableViewController.m
Expand Up @@ -301,10 +301,9 @@ - (NSInteger)parseJSON:(NSDictionary*)jsonDict backIndex:(NSInteger)backIndex

STCategory *category = [[STCategory alloc]initWithJSON:jsonDict];

NSInteger currentIndex = [self.categories count];
[self.categories addObject:category];

NSInteger currentIndex = [self.categories indexOfObject:category];

NSMutableArray *array = [[NSMutableArray alloc] init];
NSMutableArray *jsonArray = [jsonDict objectForKey:@"children"];

Expand Down

0 comments on commit 921ae94

Please sign in to comment.