Skip to content

Commit

Permalink
quick fix remove null values
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomtzlosa committed May 29, 2012
1 parent afd8911 commit 3e08f34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -391,8 +391,14 @@ - (void)viewDidLoad
CFRelease(addressBook); CFRelease(addressBook);


NSMutableArray *temp = [[NSMutableArray alloc] initWithArray:dataArray]; NSMutableArray *temp = [[NSMutableArray alloc] initWithArray:dataArray];
temp = [temp removeNullValues];
if (temp && [temp count] > 0)
{
temp = [temp removeNullValues];
}

temp = [temp removeDuplicateObjects]; temp = [temp removeDuplicateObjects];

dataArray = nil; dataArray = nil;
dataArray = [NSArray arrayWithArray:temp]; dataArray = [NSArray arrayWithArray:temp];


Expand Down

0 comments on commit 3e08f34

Please sign in to comment.